<?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: Read from Kafka, convert data from JSON to CSV and write to HADOOP in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197350#M78276</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 16:22:02 GMT</pubDate>
    <dc:creator>yko84108</dc:creator>
    <dc:date>2018-05-16T16:22:02Z</dc:date>
    <item>
      <title>Read from Kafka, convert data from JSON to CSV and write to HADOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197348#M78274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for tutorial for the following flow:&lt;/P&gt;&lt;P&gt;1. Read message from Kafka (JSON format)&lt;/P&gt;&lt;P&gt;2. Convert the JSON format to CSV format&lt;/P&gt;&lt;P&gt;3. Write the CSV to Hadoop&lt;/P&gt;&lt;P&gt;It's possible to do it with Nifi?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:48:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197348#M78274</guid>
      <dc:creator>yko84108</dc:creator>
      <dc:date>2018-05-16T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Kafka, convert data from JSON to CSV and write to HADOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197349#M78275</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80196/yko84108.html" nodeid="80196"&gt;@Ya ko&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes,it's possible with record oriented processors(Convert Record) NiFi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flow: &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1. Consume Kafka Processor //to read data from Kafka
2. Convert Record processor //to convert json format to csv format
3. PutHDFS //write the csv format data to HDFS&lt;/PRE&gt;&lt;P&gt;In ConvertRecord processor we are configuring Record Reader(&lt;STRONG&gt;Json Tree Reader&lt;/STRONG&gt;) to read incoming Json format data and Record writer Controller service(&lt;STRONG&gt;CSVSetWriter&lt;/STRONG&gt;) to write the output flowfile in CSV format, we need to define Avro schema for the Record Reader/Writer controller services.&lt;/P&gt;&lt;P&gt;Follow &lt;A href="https://community.hortonworks.com/articles/115311/convert-csv-to-json-avro-xml-using-convertrecord-p.html" target="_blank"&gt;this&lt;/A&gt; tutorial to know more details and configurations regarding Convert record processor.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 16:08:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197349#M78275</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-05-16T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Kafka, convert data from JSON to CSV and write to HADOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197350#M78276</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 16:22:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-Kafka-convert-data-from-JSON-to-CSV-and-write-to/m-p/197350#M78276</guid>
      <dc:creator>yko84108</dc:creator>
      <dc:date>2018-05-16T16:22:02Z</dc:date>
    </item>
  </channel>
</rss>

