<?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: NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217080#M178989</link>
    <description>&lt;P&gt;Can you share the configuration of AvroRecordSetWriter? That file doesn't look like it has a schema embedded in it (you can usually see the schema as JSON near the beginning of the file contents). You may need to configure the writer to embed the schema for use by ConvertAvroToORC or avro-tools (if you don't separately provide the schema to the latter).&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 22:15:54 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-08-11T22:15:54Z</dc:date>
    <item>
      <title>NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217079#M178988</link>
      <description>&lt;P&gt;java -jar avro-tools-1.8.2.jar getschema test.avro
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" java.io.IOException: Not a data file.
at org.apache.avro.file.DataFileStream.initialize(DataFileStream.java:105)
at org.apache.avro.file.DataFileReader.&amp;lt;init&amp;gt;(DataFileReader.java:97)
at org.apache.avro.tool.DataFileGetSchemaTool.run(DataFileGetSchemaTool.java:47)
at org.apache.avro.tool.Main.run(Main.java:87)
at org.apache.avro.tool.Main.main(Main.java:76)&lt;/P&gt;&lt;P&gt;No errors until I try to convert that file to ORC or if I download it and look at it in avro tools.&lt;/P&gt;&lt;P&gt;1 Jungnickel Rd
                       Ganado���&amp;amp;2017-08-04 15:26:54MovementBFAK@WE�=@�"ƖX�&amp;amp;2017-08-04 15:06:561243142403�TX&amp;amp;2017-08-04 14:15:31
77962%&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:05:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217079#M178988</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-08-11T22:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217080#M178989</link>
      <description>&lt;P&gt;Can you share the configuration of AvroRecordSetWriter? That file doesn't look like it has a schema embedded in it (you can usually see the schema as JSON near the beginning of the file contents). You may need to configure the writer to embed the schema for use by ConvertAvroToORC or avro-tools (if you don't separately provide the schema to the latter).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:15:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217080#M178989</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-08-11T22:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217081#M178990</link>
      <description>&lt;P&gt;The files are really small too as seen above and don't seem complete.&lt;/P&gt;&lt;P&gt;I have done that conversion before with no issues.&lt;/P&gt;&lt;P&gt;I am wondering if this is related to having a bunch of null fields.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27421-convertrecord.png" style="width: 755px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16185i6D1BF066680A6AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27421-convertrecord.png" alt="27421-convertrecord.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27422-jsontreereader.png" style="width: 643px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16186iD287D84C115803A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27422-jsontreereader.png" alt="27422-jsontreereader.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27423-avrorecordsetwriter.png" style="width: 610px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16187i23CDC6DC82C07641/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27423-avrorecordsetwriter.png" alt="27423-avrorecordsetwriter.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27424-schema1.png" style="width: 997px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16188i9268E3409201992A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27424-schema1.png" alt="27424-schema1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:03:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217081#M178990</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2019-08-18T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217082#M178991</link>
      <description>&lt;P&gt;I think the issue is with the HWX Content-Encoded Schema Reference, this is a special "header" in an avro file which makes it easy to integrate with HWX Schema Registry serializers and deserializers, but likely precludes it from being understood by Apache Avro readers such as the one in ConvertAvroToORC or avro-tools. If you can, try setting the Schema Write Strategy to Embed Avro Schema; this will result in larger flow files but should work in downstream processors. If/when there is a OrcRecordSetWriter, you should be able to reuse the HWX schema reference option there.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:48:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217082#M178991</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-08-11T22:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: NiFI ConvertRecord : AvroRecordSetWriter Producing Invalid Avro</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217083#M178992</link>
      <description>&lt;P&gt;+1 for an OrcRecordSetWriter&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 01:17:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFI-ConvertRecord-AvroRecordSetWriter-Producing-Invalid/m-p/217083#M178992</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-08-12T01:17:11Z</dc:date>
    </item>
  </channel>
</rss>

