<?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: Convert Json to Avro in Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301881#M220888</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81025"&gt;@P_Rat98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for raising the question about the red dot. &lt;A href="https://community.cloudera.com/t5/Support-Questions/Illegal-Arg-Exception-when-parsing-CSV-file-though-the-split/m-p/300918/highlight/true#M220438" target="_self"&gt;Please see this thread&lt;/A&gt; that might answer your inquiry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short: it is a "&lt;SPAN&gt;non-breaking space character to the file that displays as a red dot".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if it helped by pressing the "Accept as Solution" button. Should you need further information, please do not hesitate to reach out to the Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 07:45:52 GMT</pubDate>
    <dc:creator>Bender</dc:creator>
    <dc:date>2020-08-25T07:45:52Z</dc:date>
    <item>
      <title>Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301874#M220885</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to convert json data to avro.&lt;BR /&gt;I have used GenerateFlowFile and put dummy json value [{"firstname":"prathik","age":21},{"firstname":"arun","age":22}].&lt;BR /&gt;I have then used ConvertRecord processor and set JsonTreeReader and AvroRecordSetWriter with AvroSchemaRegistry which has the following schema:&lt;BR /&gt;{&lt;BR /&gt;"name": "person",&lt;BR /&gt;"namespace": "nifi",&lt;BR /&gt;"type": "record",&lt;BR /&gt;"fields": [&lt;BR /&gt;{"name": "firstname", "type": "string" },&lt;BR /&gt;{ "name": "age", "type": "int" }&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;But i am getting this as my output :&amp;nbsp;&amp;#14;prathik*&amp;#8;arun,&lt;/P&gt;&lt;P&gt;where&amp;nbsp;&amp;#14; is a red dot&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am new to Apache Nifi.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 06:27:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301874#M220885</guid>
      <dc:creator>P_Rat98</dc:creator>
      <dc:date>2020-08-25T06:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301880#M220887</link>
      <description>&lt;P&gt;Where are you viewing the data ? Is it in Nifi? Avro is in binary format so its not readable in any editor. If you are viewing in Nifi, then you should check if the you embedded the schema or not. If the schema is embedded then something in the flow is wrong. If not, i suppose it can look the way it shows you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick test could be to dump it in HDFS and create an external hive table to check if the data looks correct.&lt;/P&gt;&lt;P&gt;Hope this helps. If the comment helps you to find a solution or move forward, please accept it as a solution for other community members.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 07:39:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301880#M220887</guid>
      <dc:creator>SagarKanani</dc:creator>
      <dc:date>2020-08-25T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301881#M220888</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81025"&gt;@P_Rat98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for raising the question about the red dot. &lt;A href="https://community.cloudera.com/t5/Support-Questions/Illegal-Arg-Exception-when-parsing-CSV-file-though-the-split/m-p/300918/highlight/true#M220438" target="_self"&gt;Please see this thread&lt;/A&gt; that might answer your inquiry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short: it is a "&lt;SPAN&gt;non-breaking space character to the file that displays as a red dot".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if it helped by pressing the "Accept as Solution" button. Should you need further information, please do not hesitate to reach out to the Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 07:45:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301881#M220888</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-08-25T07:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301885#M220892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79929"&gt;@SagarKanani&lt;/a&gt;&amp;nbsp;Thanks for your input.&lt;/P&gt;&lt;P&gt;I have set the write strategy in AvroRecordSetWriter as Embedded Avro. And i have received the following output&amp;nbsp; :&lt;/P&gt;&lt;P&gt;Obj&amp;#1;&amp;#4;&amp;#22;avro.schema€&amp;#2;{"type":"record","name":"person","namespace":"nifi","fields":[{"name":"firstname","type":"string"},{"name":"age","type":"int"}]}&amp;#20;avro.codec&amp;#8;null¢ÈFB¡-Ž`0„Ûv‚L&amp;#2;@&amp;#4;&amp;#30;&amp;#14;prathik*&amp;#8;arun,¢ÈFB¡-Ž`0„Ûv‚L&amp;#2;@&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again&amp;nbsp;&amp;#22; is red dot.&lt;/P&gt;&lt;P&gt;One more Doubt, how can one view avro data if we can't view them on nifi.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 10:41:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301885#M220892</guid>
      <dc:creator>P_Rat98</dc:creator>
      <dc:date>2020-08-25T10:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301886#M220893</link>
      <description>&lt;P&gt;Hi....you should be able to see the avro in Nifi. When you open the file, there is an option on the top left "View as". It is by default Original. Change it to formatted and you should be able to see the avro correctly. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 10:46:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301886#M220893</guid>
      <dc:creator>SagarKanani</dc:creator>
      <dc:date>2020-08-25T10:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301892#M220899</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79929"&gt;@SagarKanani&lt;/a&gt;&amp;nbsp;i am now able to view the avro data.&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience, but i had another doubt. If i try to convert this Avro data to Parquet by using ConverAvroToParquet processor then i am getting an output like this:&lt;/P&gt;&lt;P&gt;PAR1&amp;#21;&amp;#21;&amp;amp;&amp;#21;&amp;amp;,&amp;#21;&amp;#4;&amp;#21;&amp;#21;&amp;#8;&amp;#21;&amp;#8;&amp;#28;6(&amp;#7;prathik&amp;#24;&amp;#4;arun&amp;#7;prathik&amp;#4;arun&amp;#21;&amp;#21;&amp;#16;&amp;#21;&amp;#16;,&amp;#21;&amp;#4;&amp;#21;&amp;#21;&amp;#8;&amp;#21;&amp;#8;&amp;#28;&amp;#24;&amp;#4;&amp;#22;&amp;#24;&amp;#4;&amp;#21;&amp;#22;(&amp;#4;&amp;#22;&amp;#24;&amp;#4;&amp;#21;&amp;#21;&amp;#22;&amp;#21;&amp;#2;&amp;#25;&amp;lt;H&amp;#11;nifi.person&amp;#21;&amp;#4;&amp;#21;&amp;#12;%&amp;#24; firstname%&amp;#21;&amp;#2;%&amp;#24;&amp;#3;age&amp;#22;&amp;#4;&amp;#25;&amp;#28;&amp;#25;,&amp;amp;&amp;#8;&amp;#28;&amp;#21;&amp;#12;&amp;#25;%&amp;#8;&amp;#25;&amp;#24; firstname&amp;#21;&amp;#22;&amp;#4;&amp;#22;n&amp;#22;n&amp;amp;&amp;#8;&amp;lt;6(&amp;#7;prathik&amp;#24;&amp;#4;arun&amp;#25;&amp;#28;&amp;#21;&amp;#21;&amp;#21;&amp;#2;&amp;amp;v&amp;#28;&amp;#21;&amp;#2;&amp;#25;%&amp;#8;&amp;#25;&amp;#24;&amp;#3;age&amp;#21;&amp;#22;&amp;#4;&amp;#22;j&amp;#22;j&amp;amp;v&amp;lt;&amp;#24;&amp;#4;&amp;#22;&amp;#24;&amp;#4;&amp;#21;&amp;#22;(&amp;#4;&amp;#22;&amp;#24;&amp;#4;&amp;#21;&amp;#25;&amp;#28;&amp;#21;&amp;#21;&amp;#21;&amp;#2;&amp;#22;Ø&amp;#1;&amp;#22;&amp;#4;&amp;#25;,&amp;#24;&amp;#19;parquet.avro.schema&amp;#24;€&amp;#1;{"type":"record","name":"person","namespace":"nifi","fields":[{"name":"firstname","type":"string"},{"name":"age","type":"int"}]}&amp;#24;&amp;#17;writer.model.name&amp;#24;&amp;#4;avro&amp;#24;Jparquet-mr version 1.10.0 (build 031a6654009e3b82020012a18434c582bd74c73a)&amp;#25;,&amp;#28;&amp;#28;Ã&amp;#1;PAR1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i try to put the "view as" option as formatted i get the following message:&amp;nbsp;Unable to generate view of data: Not a data file.&lt;BR /&gt;Thanks in Advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:23:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301892#M220899</guid>
      <dc:creator>P_Rat98</dc:creator>
      <dc:date>2020-08-25T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301900#M220907</link>
      <description>&lt;P&gt;Unfortunately, i havent used parquet at all...I would assume 'not a data file' could mean either the file doesnt have schema embedded or file is not in correct format (conversion didnt work)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 13:33:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/301900#M220907</guid>
      <dc:creator>SagarKanani</dc:creator>
      <dc:date>2020-08-25T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to Avro in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/302376#M221096</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81025"&gt;@P_Rat98&lt;/a&gt;&amp;nbsp; You need parquet tools to read parquet files from command line.&lt;/P&gt;&lt;P&gt;There is no method to view parquet in nifi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/parquet-tools/" target="_blank"&gt;https://pypi.org/project/parquet-tools/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 13:25:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-Json-to-Avro-in-Nifi/m-p/302376#M221096</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-09-04T13:25:10Z</dc:date>
    </item>
  </channel>
</rss>

