<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Way to get a Schema's Metadata without building it? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129724#M51602</link>
    <description>&lt;P&gt;Fantastic, that did the trick!  Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 04:56:15 GMT</pubDate>
    <dc:creator>orendain</dc:creator>
    <dc:date>2017-01-18T04:56:15Z</dc:date>
    <item>
      <title>Way to get a Schema's Metadata without building it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129721#M51599</link>
      <description>&lt;P&gt;
	I have data that I want to serialize, and I currently have it laid out like so:&lt;/P&gt;&lt;PRE&gt;val mySerializer: AvroSnapshotSerializer = schemaRegistryClient.getDefaultSerializer(...)
val myObj: GenericData.Record = new GenericData.Record(...)
val myMetadata: SchemaMetadata = new SchemaMetadata.Builder("NameOfMySchema")
  .schemaGroup(...)
  .description(...)
  .etc.
val serializedObj = mySerializer.serializer(myObj, myMetadata)&lt;/PRE&gt;&lt;P&gt;Assuming that I've already registered my schema (by hand or in another application), is there a way to use the Serializer's serialize() method without having to build the metadata all over again?  Can I retrieve the a SchemaMetadata object from, say, the SchemaVersionInfo that I get with the following?&lt;/P&gt;&lt;PRE&gt;schemaRegistryClient.getLatestSchemaVersionInfo("NameOfMySchema")
&lt;/PRE&gt;&lt;P&gt;Having looked through the reference material and source code, I can't seem to find a way to get a copy of the metadata from  without building it anew.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:16:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129721#M51599</guid>
      <dc:creator>orendain</dc:creator>
      <dc:date>2017-01-15T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Way to get a Schema's Metadata without building it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129722#M51600</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/90/sduggana.html" nodeid="90"&gt;@Satish Duggana&lt;/A&gt; --&amp;gt; Thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 23:23:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129722#M51600</guid>
      <dc:creator>gvetticaden1</dc:creator>
      <dc:date>2017-01-16T23:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Way to get a Schema's Metadata without building it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129723#M51601</link>
      <description>&lt;P&gt;You can get SchemaMetadata for a given schema name using schemaRegistryClient with the below API.&lt;/P&gt;&lt;PRE&gt;SchemaMetadata schemaMetadata = getSchemaMetadataInfo(String schemaName).getSchemaMetadata()
&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2017 23:19:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129723#M51601</guid>
      <dc:creator>sduggana</dc:creator>
      <dc:date>2017-01-17T23:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Way to get a Schema's Metadata without building it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129724#M51602</link>
      <description>&lt;P&gt;Fantastic, that did the trick!  Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 04:56:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Way-to-get-a-Schema-s-Metadata-without-building-it/m-p/129724#M51602</guid>
      <dc:creator>orendain</dc:creator>
      <dc:date>2017-01-18T04:56:15Z</dc:date>
    </item>
  </channel>
</rss>

