<?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 ConvertCSVToAvro with InferAvroScheme in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224294#M79717</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;EM&gt;-- New day - new problem.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;
	I download the CSV file into the InferAvroScheme to determine the scheme of the avro file. &lt;BR /&gt;
	After that file's sent to the ConvertCSVToAvro where it is converted. &lt;BR /&gt;
	1. InferAvroSchema incorrectly defines the scheme, outputting in a single cell all the values. &lt;BR /&gt;
	2. ConvertCSVToAvro "Cannot find schema", although I indicated ${inferred.avro.schema} in Record schema.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6402iDB6ED0B48A781829/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="114.jpg" title="114.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6403i93B08DD44CDAD494/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="112.jpg" title="112.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6404i3FE1FB372A7EFD31/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="113.jpg" title="113.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6405i9F89875D3F709DF4/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="11.jpg" title="11.jpg" /&gt;</description>
    <pubDate>Tue, 19 Jun 2018 17:22:01 GMT</pubDate>
    <dc:creator>vscherbakov</dc:creator>
    <dc:date>2018-06-19T17:22:01Z</dc:date>
    <item>
      <title>ConvertCSVToAvro with InferAvroScheme</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224294#M79717</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;EM&gt;-- New day - new problem.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;
	I download the CSV file into the InferAvroScheme to determine the scheme of the avro file. &lt;BR /&gt;
	After that file's sent to the ConvertCSVToAvro where it is converted. &lt;BR /&gt;
	1. InferAvroSchema incorrectly defines the scheme, outputting in a single cell all the values. &lt;BR /&gt;
	2. ConvertCSVToAvro "Cannot find schema", although I indicated ${inferred.avro.schema} in Record schema.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6402iDB6ED0B48A781829/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="114.jpg" title="114.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6403i93B08DD44CDAD494/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="112.jpg" title="112.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6404i3FE1FB372A7EFD31/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="113.jpg" title="113.jpg" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6405i9F89875D3F709DF4/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="11.jpg" title="11.jpg" /&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:22:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224294#M79717</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-19T17:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro with InferAvroScheme</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224295#M79718</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/83297/vscherbakov.html" nodeid="83297" target="_blank"&gt;@Vladislav Shcherbakov&lt;/A&gt;&lt;P&gt;I think you are missing small configuration in InferAvroSchema processor&lt;/P&gt;&lt;P&gt;Change &lt;STRONG&gt;Schema Output Destination
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;flowfile-attribute&lt;/PRE&gt;&lt;P&gt;Instead of flowfile-content then the inferred.avro.schema attribute will be added to the flowfile.&lt;/P&gt;&lt;H3 id="toc-hId-1450036057"&gt;Writes Attributes:&lt;/H3&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH&gt;Description&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;inferred.avro.schema&lt;/TD&gt;&lt;TD&gt;If configured by "Schema output destination" to write to an attribute this will hold the resulting Avro schema from inferring the incoming FlowFile content.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77751-inferavroschema.png" style="width: 1564px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15523iE2BB5BB3CBE13514/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77751-inferavroschema.png" alt="77751-inferavroschema.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you make this changes then ConverCSVto Avro processor will be able to find out inferred.avro.schema attribute.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:46:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224295#M79718</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T01:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro with InferAvroScheme</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224296#M79719</link>
      <description>&lt;P&gt;Yes, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 22:56:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-with-InferAvroScheme/m-p/224296#M79719</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-19T22:56:34Z</dc:date>
    </item>
  </channel>
</rss>

