<?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: Error while ingesting Plain CSV to SAM via NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197319#M159370</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/138883/error-while-ingesting-plain-csv-to-sam-via-nifi.html#"&gt;@mkalyanpur&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CSVReader 1.2.0.3.0.1.1-5 &amp;amp; AvroRecordSetWriter 1.2.0.3.0.1.1-5 are as follows.&lt;/P&gt;&lt;P&gt;And my avro schema in the registry is similar to this with bunch of more string fields.&lt;/P&gt;&lt;PRE&gt;{
  "type": "record",
  "name": "tracking_sdk_event",
  "fields": [
    {
      "name": "timeStamp",
      "type": "long",
      "default": null
    },
    {
      "name": "isoTime",
      "type": "string",
      "default": null
    }
  ] 
}&lt;/PRE&gt;&lt;P&gt;@Bryan Bende &lt;/P&gt;&lt;P&gt;After changing the "Schema Write Strategy" to "Hortonworks Content Encoded Schema Reference" I'm getting an error with the timeStamp field. I have attached an image of it.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7499i54D357E3817BF7BB/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="avrorecordsetwriter-1203011-5.png" title="avrorecordsetwriter-1203011-5.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7500iE25F5792E09CF148/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2017-09-20-at-112540-am.png" title="screen-shot-2017-09-20-at-112540-am.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7502i6CFF92586C3F309E/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="csvreader-1203011-5.png" title="csvreader-1203011-5.png" /&gt;</description>
    <pubDate>Wed, 20 Sep 2017 12:56:39 GMT</pubDate>
    <dc:creator>roshand</dc:creator>
    <dc:date>2017-09-20T12:56:39Z</dc:date>
    <item>
      <title>Error while ingesting Plain CSV to SAM via NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197316#M159367</link>
      <description>&lt;P&gt;I'm trying to upgrade a existing visualization(Kafka&amp;gt;Flink&amp;gt;Druid&amp;gt;Superset) solution to work with HWX SAM &amp;amp; Registry.&lt;/P&gt;&lt;P&gt;Currently the NIFI Works as a HTTP proxy to collect events and push to kafka, I'm trying to convert the events(CSV) to avro in this stage and push to kafka so that SAM can consume.   &lt;/P&gt;&lt;P&gt;Output of the SplitContent is something similar to "abc,def,ghi,jkl,,"&lt;/P&gt;&lt;P&gt;I'm getting this error in storm UI&lt;/P&gt;&lt;PRE&gt;com.hortonworks.registries.schemaregistry.serde.SerDesException: Unknown protocol id [49] received while deserializing the payload at com.hortonworks.registries.schemaregistry.serdes.avro.AvroSnapsho&lt;/PRE&gt;&lt;P&gt;Is there something I should pay closer attention to when processing CSV? Troubleshooting recommendations ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="40414-screen-shot-2017-09-19-at-114110-am.png" style="width: 748px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17849iCE05A2E4392FBF02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="40414-screen-shot-2017-09-19-at-114110-am.png" alt="40414-screen-shot-2017-09-19-at-114110-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:18:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197316#M159367</guid>
      <dc:creator>roshand</dc:creator>
      <dc:date>2019-08-18T06:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while ingesting Plain CSV to SAM via NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197317#M159368</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30181/roshand.html" nodeid="30181"&gt;@Roshan Dissanayake&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please show the configuration of publishkafka reader and writer CS?&lt;/P&gt;&lt;P&gt;This looks to be an issue while setting the attributes of the flowfile when it is being sent to retrieve the Schema from registry.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:49:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197317#M159368</guid>
      <dc:creator>mkalyanpur</dc:creator>
      <dc:date>2017-09-19T15:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error while ingesting Plain CSV to SAM via NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197318#M159369</link>
      <description>&lt;P&gt; The reader on the SAM side is trying to read the encoded schema reference, but it is likely not there. The AvroRecordSetWriter being used by PublishKafkaRecord_0_10 must be configured with a "Schema Write Strategy" of "Hortonworks Content Encoded Schema Reference".&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 20:01:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197318#M159369</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-09-19T20:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error while ingesting Plain CSV to SAM via NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197319#M159370</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/138883/error-while-ingesting-plain-csv-to-sam-via-nifi.html#"&gt;@mkalyanpur&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CSVReader 1.2.0.3.0.1.1-5 &amp;amp; AvroRecordSetWriter 1.2.0.3.0.1.1-5 are as follows.&lt;/P&gt;&lt;P&gt;And my avro schema in the registry is similar to this with bunch of more string fields.&lt;/P&gt;&lt;PRE&gt;{
  "type": "record",
  "name": "tracking_sdk_event",
  "fields": [
    {
      "name": "timeStamp",
      "type": "long",
      "default": null
    },
    {
      "name": "isoTime",
      "type": "string",
      "default": null
    }
  ] 
}&lt;/PRE&gt;&lt;P&gt;@Bryan Bende &lt;/P&gt;&lt;P&gt;After changing the "Schema Write Strategy" to "Hortonworks Content Encoded Schema Reference" I'm getting an error with the timeStamp field. I have attached an image of it.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7499i54D357E3817BF7BB/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="avrorecordsetwriter-1203011-5.png" title="avrorecordsetwriter-1203011-5.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7500iE25F5792E09CF148/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2017-09-20-at-112540-am.png" title="screen-shot-2017-09-20-at-112540-am.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7502i6CFF92586C3F309E/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="csvreader-1203011-5.png" title="csvreader-1203011-5.png" /&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:56:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197319#M159370</guid>
      <dc:creator>roshand</dc:creator>
      <dc:date>2017-09-20T12:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error while ingesting Plain CSV to SAM via NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197320#M159371</link>
      <description>&lt;P&gt;If you want to have a default value of "null" then the type of your field needs to be a union of null and the real type.&lt;/P&gt;&lt;P&gt;For example, for timestamp you would need: "type": ["long", "null"]&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:33:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-ingesting-Plain-CSV-to-SAM-via-NIFI/m-p/197320#M159371</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-09-20T20:33:33Z</dc:date>
    </item>
  </channel>
</rss>

