<?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 - AVRO to CSV or Json to CSV,NIFI - convert Avro to CSV in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119106#M34178</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11704/fhussain.html" nodeid="11704"&gt;@Faisal Hussain&lt;/A&gt; I do not think there is one but definitely there is plan to develop one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/NIFI/First-class+Avro+Support"&gt;https://cwiki.apache.org/confluence/display/NIFI/First-class+Avro+Support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can convert Avro to JSON (ConvertAvroToJSON) and then call a script (lots of example of scripts in the internet for converting JSON to csv using java/javascript/perl/bash/awk etc and etc) in the ExecuteStreamCommand processor. This would work. Let us know if you need more details. &lt;/P&gt;</description>
    <pubDate>Sat, 09 Jul 2016 00:39:36 GMT</pubDate>
    <dc:creator>rbiswas1</dc:creator>
    <dc:date>2016-07-09T00:39:36Z</dc:date>
    <item>
      <title>Nifi - AVRO to CSV or Json to CSV,NIFI - convert Avro to CSV</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119103#M34175</link>
      <description>&lt;P&gt;I am unable to find a processor which can convert Avro to CSV or Json to CSV .. any pointer on this .. &lt;/P&gt;&lt;P&gt;,
&lt;/P&gt;&lt;P&gt;I am working on a data flow, where I am reading data from Redshift and then pushing data to a  .csv file.  All is good, however I am unable to find a processor which can convert data to CSV format.  &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:28:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119103#M34175</guid>
      <dc:creator>fhussain</dc:creator>
      <dc:date>2022-09-16T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - AVRO to CSV or Json to CSV,NIFI - convert Avro to CSV</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119104#M34176</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/11704/fhussain.html" nodeid="11704"&gt;@Faisal Hussain&lt;/A&gt; please take a look at &lt;A href="https://community.hortonworks.com/questions/1502/pattern-convert-csv-to-json.html"&gt;this&lt;/A&gt; post.  &lt;/P&gt;&lt;P style="margin-left: 80px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt; mentioned this:&lt;/P&gt;&lt;P&gt; incoming CSV like:&lt;/P&gt;&lt;P&gt;h1,h2,h3,h4&lt;/P&gt;&lt;P&gt;v1,v2,v3,v4&lt;/P&gt;&lt;P&gt;You could capture that in ExtractText with a pattern of:&lt;/P&gt;&lt;P&gt;(.+),(.+),(.+),(.+)\n(.+),(.+),(.+),(.+)&lt;/P&gt;&lt;P&gt;Then in ReplaceText:&lt;/P&gt;&lt;P&gt;{ "${csv.1}" : "${csv.5}", "${csv.2}" : "${csv.6}", "${csv.3}" : "${csv.7}", "${csv.4}" : "${csv.8}" }&lt;/P&gt;&lt;P&gt;Would produce:&lt;/P&gt;&lt;P&gt;{ "h1" : "v1", "h2" : "v2", "h3" : "v3", "h4" : "v4" }&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 00:11:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119104#M34176</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-09T00:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - AVRO to CSV or Json to CSV,NIFI - convert Avro to CSV</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119105#M34177</link>
      <description>&lt;P&gt;&lt;A href="https://nifi.apache.org/docs.html" target="_blank"&gt;https://nifi.apache.org/docs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;see this article&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 00:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119105#M34177</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-07-09T00:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - AVRO to CSV or Json to CSV,NIFI - convert Avro to CSV</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119106#M34178</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11704/fhussain.html" nodeid="11704"&gt;@Faisal Hussain&lt;/A&gt; I do not think there is one but definitely there is plan to develop one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/NIFI/First-class+Avro+Support"&gt;https://cwiki.apache.org/confluence/display/NIFI/First-class+Avro+Support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can convert Avro to JSON (ConvertAvroToJSON) and then call a script (lots of example of scripts in the internet for converting JSON to csv using java/javascript/perl/bash/awk etc and etc) in the ExecuteStreamCommand processor. This would work. Let us know if you need more details. &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 00:39:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-AVRO-to-CSV-or-Json-to-CSV-NIFI-convert-Avro-to-CSV/m-p/119106#M34178</guid>
      <dc:creator>rbiswas1</dc:creator>
      <dc:date>2016-07-09T00:39:36Z</dc:date>
    </item>
  </channel>
</rss>

