<?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: How do I add additional columns to Flow File content in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134315#M35033</link>
    <description>&lt;P&gt;Currently there aren't any processors that perform direct manipulation of Avro, although we definitely would like to have some. &lt;/P&gt;&lt;P&gt;Possible options to work around this...&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Use ConvertAvroToJson followed by the new JOLT transform processor followed by ConvertJsonToAvro (involves a lot of conversion and may lose some of the initial schema)&lt;/LI&gt;&lt;LI&gt;Use ExecuteScript processor to manipulate the Avro (I am not sure if any of NiFi's supported scripting languages have good Avro support)&lt;/LI&gt;&lt;LI&gt;Write a custom Java processor to manipulate the Avro (https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Happy to help answer any questions if going the custom Java processor route.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2016 04:06:06 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2016-07-19T04:06:06Z</dc:date>
    <item>
      <title>How do I add additional columns to Flow File content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134314#M35032</link>
      <description>&lt;P&gt;Goal is to  read the data from RDBMS table and store it in HDFS in avro format  with additional column , let say source table has 5 columns , as part of the ingestion I would like to add additional column  say "ingest_datetime"  with current_time value before nifi stores the file in HDFS    finally HDFS should have avro file with 6 columns in the end .&lt;/P&gt;&lt;P&gt;Currently I am using ExecuteSQL --&amp;gt; PutHDFS  processors &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 03:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134314#M35032</guid>
      <dc:creator>smunigati</dc:creator>
      <dc:date>2016-07-19T03:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add additional columns to Flow File content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134315#M35033</link>
      <description>&lt;P&gt;Currently there aren't any processors that perform direct manipulation of Avro, although we definitely would like to have some. &lt;/P&gt;&lt;P&gt;Possible options to work around this...&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Use ConvertAvroToJson followed by the new JOLT transform processor followed by ConvertJsonToAvro (involves a lot of conversion and may lose some of the initial schema)&lt;/LI&gt;&lt;LI&gt;Use ExecuteScript processor to manipulate the Avro (I am not sure if any of NiFi's supported scripting languages have good Avro support)&lt;/LI&gt;&lt;LI&gt;Write a custom Java processor to manipulate the Avro (https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Happy to help answer any questions if going the custom Java processor route.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 04:06:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134315#M35033</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-07-19T04:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add additional columns to Flow File content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134316#M35034</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11920/smunigati.html" nodeid="11920"&gt;@Sreekanth  Munigati &lt;/A&gt;, As &lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt; mentioned, there is no direct way of manipulating Avro data, but in your case you can try modifying SQL being executed by ExecuteSQL processor to add an additional column in SQL itself. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:51:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134316#M35034</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-07-19T20:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add additional columns to Flow File content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134317#M35035</link>
      <description>&lt;P&gt;Thanks for the response ..&lt;/P&gt;&lt;P&gt;Do you know when the new JOLT transform processor is going to be releasing ? existing 0.61. or 0.7 does not have this new processor you are talking about, but NIFI-361 ticket is talking about it. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 01:49:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134317#M35035</guid>
      <dc:creator>smunigati</dc:creator>
      <dc:date>2016-07-20T01:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add additional columns to Flow File content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134318#M35036</link>
      <description>&lt;P&gt;It is in the 0.7.0 release, part of the stanadard bundle:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/nifi/blob/0.x/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoltTransformJSON.java" target="_blank"&gt;https://github.com/apache/nifi/blob/0.x/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoltTransformJSON.java&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 02:00:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-additional-columns-to-Flow-File-content/m-p/134318#M35036</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-07-20T02:00:15Z</dc:date>
    </item>
  </channel>
</rss>

