<?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: ConvertCSVToAvro NiFi Failed to Convert Records in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129843#M31295</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94/ldaluz.html" nodeid="94"&gt;@Laurence Da Luz&lt;/A&gt; Manually defining the schema work, thanks for the suggestion. Am curious though what went wrong with the inference processor&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 17:03:32 GMT</pubDate>
    <dc:creator>kctan6</dc:creator>
    <dc:date>2016-06-09T17:03:32Z</dc:date>
    <item>
      <title>ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129838#M31290</link>
      <description>&lt;P&gt;I'm using the NiFi ConvertCSVToAvro processor, with an InferAvroSchema processor upstream to obtain the schema. I'm getting an error Failed to Convert 1031/6058 records so most of the records are being converted successfully but I'm unable to figure out why the remainder rows failed. How do I go about debugging / identifying reasons for the failed rows and are there some typical reasons for the failure?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:14:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129838#M31290</guid>
      <dc:creator>kctan6</dc:creator>
      <dc:date>2016-06-09T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129839#M31291</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10636/kctan6.html" nodeid="10636"&gt;@KC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any information in the application logs (./logs/nifi-app.log) ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:35:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129839#M31291</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-09T16:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129840#M31292</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10636/kctan6.html" nodeid="10636"&gt;@KC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How are you defining your Avro Schema?&lt;/P&gt;&lt;P&gt;Typically the 'failed to convert' errors occur when the csv records don't fit the data types defined in your avro schema. If you're using the 'InferAvroSchema' processor or Kite SDK to define the schema, it is possible that the inferred schema isn't a true representation of your data (keep in mind that these methods infer the schema based on a subset of the data, so if your data isn't very consistent then it is likely that they will misinterpret what the field types are and hit errors during converting).&lt;/P&gt;&lt;P&gt;If you know the data, you could get around this by manually defining the Avro schema based on the actual data types.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:46:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129840#M31292</guid>
      <dc:creator>ldaluz</dc:creator>
      <dc:date>2016-06-09T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129841#M31293</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt; nothing other than 2016-06-09 05:50:43,503 WARN [Timer-Driven Process Thread-7] o.a.n.processors.kite.ConvertCSVToAvro ConvertCSVToAvro[id=2238d74a-0635-401d-b51c-45ca87a4cfb9] Failed to convert 1055/6031 records from CSV to Avro&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:49:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129841#M31293</guid>
      <dc:creator>kctan6</dc:creator>
      <dc:date>2016-06-09T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129842#M31294</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94/ldaluz.html" nodeid="94"&gt;@Laurence Da Luz&lt;/A&gt; Yes I am using the 'InferAvroSchema' Processor. Is it possible to output and view the Schema somewhere? I'll also try to manually define the schema&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:52:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129842#M31294</guid>
      <dc:creator>kctan6</dc:creator>
      <dc:date>2016-06-09T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129843#M31295</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94/ldaluz.html" nodeid="94"&gt;@Laurence Da Luz&lt;/A&gt; Manually defining the schema work, thanks for the suggestion. Am curious though what went wrong with the inference processor&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:03:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129843#M31295</guid>
      <dc:creator>kctan6</dc:creator>
      <dc:date>2016-06-09T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129844#M31296</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10636/kctan6.html" nodeid="10636"&gt;@KC&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Your 'InferAvroSchema' is likely capturing the schema as an attribute called 'inferred.avro.schema' (assuming you followed the tutorial here: &lt;A href="https://community.hortonworks.com/articles/28341/converting-csv-to-avro-with-apache-nifi.html" target="_blank"&gt;https://community.hortonworks.com/articles/28341/converting-csv-to-avro-with-apache-nifi.html&lt;/A&gt; )
If that's the case, you can view its output by looking at one of the flowfiles in queue after 'InferAvroSchema' (List queue &amp;gt; select a flowfile &amp;gt; view attributes &amp;gt; view inferred.avro.schema property).
If you want to manually define the schema without changing too much of your flow, you can directly replace your 'InferAvroSchema' processor with an 'UpdateAttribute' processor - within the 'UpdateAttribute' define a new property called inferred.avro.schema and paste in your avro schema as the value (json format).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:12:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129844#M31296</guid>
      <dc:creator>ldaluz</dc:creator>
      <dc:date>2016-06-09T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129845#M31297</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/94/ldaluz.html" nodeid="94"&gt;@Laurence Da Luz&lt;/A&gt; Thanks. I checked the inferred schema and verified the issue / error. It inferred a column as 'long' when there were 'floats' for some rows. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 09:49:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129845#M31297</guid>
      <dc:creator>kctan6</dc:creator>
      <dc:date>2016-06-10T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertCSVToAvro NiFi Failed to Convert Records</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129846#M31298</link>
      <description>&lt;P&gt;@KC - Did you crack this. Actually I am quite new to this and I am also getting the same issue. Also I tried with new property 'inferred.avro.schema' but did not get any success.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 22:53:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ConvertCSVToAvro-NiFi-Failed-to-Convert-Records/m-p/129846#M31298</guid>
      <dc:creator>harshit1</dc:creator>
      <dc:date>2017-02-23T22:53:26Z</dc:date>
    </item>
  </channel>
</rss>

