<?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: SAM fail to get schema from Schema Registry in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211825#M63088</link>
    <description>&lt;P&gt;Ping &lt;A rel="user" href="https://community.cloudera.com/users/103/rgautam.html" nodeid="103"&gt;@Raghav Kumar Gautam&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jun 2017 01:35:35 GMT</pubDate>
    <dc:creator>namaheshwari</dc:creator>
    <dc:date>2017-06-17T01:35:35Z</dc:date>
    <item>
      <title>SAM fail to get schema from Schema Registry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211824#M63087</link>
      <description>&lt;P&gt;Following the instruction under link below to build my first SAM applicaiton&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_getting-started-with-stream-analytics/content/ch_building-end-to-end-app.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_getting-started-with-stream-analytics/content/ch_building-end-to-end-app.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I kept getting error with the kafka source added with error message as "Schema not found"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17434-screen-shot-2017-06-16-at-21501-pm.png" style="width: 497px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16624i93B4E7EDFD6357B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17434-screen-shot-2017-06-16-at-21501-pm.png" alt="17434-screen-shot-2017-06-16-at-21501-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;While looking at the SAM log, I got 404 error&lt;/P&gt;&lt;PRE&gt;INFO   [18:14:55.230] [dw-95 - GET /api/v1/schemas/truck_events_avro] c.h.s.s.s.SchemaResource -  Received path: [truck_events_avro]
ERROR  [18:14:55.269] [dw-95 - GET /api/v1/schemas/truck_events_avro] c.h.s.s.s.SchemaResource -  Got exception: [RuntimeException] / message [javax.ws.rs.NotFoundException: HTTP 404 Not Found] / related resource location: [com.hortonworks.streamline.streams.service.SchemaResource.getKafkaSourceSchema](SchemaResource.java:131)&lt;/PRE&gt;&lt;P&gt;Where on Registry log, it seems that the schema SAM try to get does not exist, the request did get through but no schema exist with that schema key&lt;/P&gt;&lt;PRE&gt;INFO   [18:14:55.260] [dw-19350 - GET /api/v1/schemaregistry/schemas/truck_events_avro/versions/latest] c.h.r.s.w.SchemaRegistryResource -  No schemas found with schemakey: [truck_events_avro]
&lt;/PRE&gt;&lt;P&gt;I did create all the schema in SchemaRegistry following the steps in the guide and I can see all the schema from the dash board on &lt;A href="http://REGISTRY_SERVER:7788/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://REGISTRY_SERVER:7788/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17435-screen-shot-2017-06-16-at-22208-pm.png" style="width: 1502px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16625i66CA8298AD7CBBA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17435-screen-shot-2017-06-16-at-22208-pm.png" alt="17435-screen-shot-2017-06-16-at-22208-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when try to get the schema with API from &lt;A href="http://REGISTRY_SERVER:7788/api/v1/schemaregistry/schemas/truck_events_avro/versions/latest" target="_blank" rel="nofollow noopener noreferrer"&gt;http://REGISTRY_SERVER:7788/api/v1/schemaregistry/schemas/truck_events_avro/versions/latest&lt;/A&gt; i got the same error like in registry.log&lt;/P&gt;&lt;PRE&gt;{"responseCode":1101,"responseMessage":"Entity with id [truck_events_avro] not found."}
&lt;/PRE&gt;&lt;P&gt;Any suggestions on how to fix the probelm?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:54:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211824#M63087</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2019-08-18T03:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAM fail to get schema from Schema Registry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211825#M63088</link>
      <description>&lt;P&gt;Ping &lt;A rel="user" href="https://community.cloudera.com/users/103/rgautam.html" nodeid="103"&gt;@Raghav Kumar Gautam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 01:35:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211825#M63088</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-06-17T01:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAM fail to get schema from Schema Registry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211826#M63089</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17436-screen-shot-2017-06-16-at-40521-pm.png" style="width: 1498px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16623i09E073164499153A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17436-screen-shot-2017-06-16-at-40521-pm.png" alt="17436-screen-shot-2017-06-16-at-40521-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Found the reason. I was following an older version which has the schema registered with name postfix ":v", it apparently is not needed any more. So after register the schema again with name as the kafka topic, everything works fine.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SAM-fail-to-get-schema-from-Schema-Registry/m-p/211826#M63089</guid>
      <dc:creator>qiwang</dc:creator>
      <dc:date>2019-08-18T03:53:59Z</dc:date>
    </item>
  </channel>
</rss>

