<?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: In NiFi is there Any processor for converting Avro to CSV or .txt format. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/In-NiFi-is-there-Any-processor-for-converting-Avro-to-CSV-or/m-p/113783#M76581</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1952/suri-1415.html" nodeid="1952"&gt;@SparkRocks&lt;/A&gt; &lt;/P&gt;&lt;P&gt;At the moment there is no such processor but there are ongoing discussions on the subject [1].&lt;/P&gt;&lt;P&gt;The best output format really depends of what you want to do with the data, JSON looks like a good format to me for its flexibility.&lt;/P&gt;&lt;P&gt;If you really want CSV, there are multiple options depending of how complicated is your input data. If there are not a lot of tables/columns, you could do something like:&lt;/P&gt;&lt;P&gt;ExecuteSQL &amp;gt; AvroToJson &amp;gt; EvaluateJsonPath (to extract the values into flow file attributes) &amp;gt; ReplaceText to write your CSV using expression language &amp;gt; PutS3&lt;/P&gt;&lt;P&gt;Otherwise you could have a look to ExecuteScript processor and rely on an existing library to perform the conversion.&lt;/P&gt;&lt;P&gt;Or, as you suggested, you could write a custom processor and you could contribute your code to NiFi.&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://issues.apache.org/jira/browse/NIFI-1372" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-1372&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 18:28:01 GMT</pubDate>
    <dc:creator>pvillard</dc:creator>
    <dc:date>2016-07-05T18:28:01Z</dc:date>
  </channel>
</rss>

