- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Read from Kafka, convert data from JSON to CSV and write to HADOOP
- Labels:
-
Apache Hadoop
-
Apache Spark
Created ‎05-16-2018 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm looking for tutorial for the following flow:
1. Read message from Kafka (JSON format)
2. Convert the JSON format to CSV format
3. Write the CSV to Hadoop
It's possible to do it with Nifi?
Thanks.
Created ‎05-16-2018 09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes,it's possible with record oriented processors(Convert Record) NiFi,
Flow:
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
In ConvertRecord processor we are configuring Record Reader(Json Tree Reader) to read incoming Json format data and Record writer Controller service(CSVSetWriter) to write the output flowfile in CSV format, we need to define Avro schema for the Record Reader/Writer controller services.
Follow this tutorial to know more details and configurations regarding Convert record processor.
Created ‎05-16-2018 09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes,it's possible with record oriented processors(Convert Record) NiFi,
Flow:
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
In ConvertRecord processor we are configuring Record Reader(Json Tree Reader) to read incoming Json format data and Record writer Controller service(CSVSetWriter) to write the output flowfile in CSV format, we need to define Avro schema for the Record Reader/Writer controller services.
Follow this tutorial to know more details and configurations regarding Convert record processor.
Created ‎05-16-2018 09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
