Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Import csv data to kafka topics


Hi Team,

Kindly advise how to import csv/json data to each topics in KAFKA respectively.

I am new to kafka .please provide steps to do ths


Hi @hema moger

You can use NiFi for this. In which format you want to use in Kafka?

Avro is popular format to use with Kafka. You can use for instant use PublishKafkaRecord to convert your CSV data into Avro and publish it to Kafka. For this, you need to use a CSV Record reader and an Avro record writter and define your schema in NiFi or Hortonworks Schema Registry. Does this answer your question?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.