Support Questions
Find answers, ask questions, and share your expertise

How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

We are looking for some kind of utility or tool to read the data from HDFS and place it in the kafka topic. Appreciate your inputs.

 

From the community section, we came across this "You could use Apache NiFi with a ListHDFS + FetchHDFS processor followed by PublishKafka"...Can you provide more insight how this can be acheived

 

Thank you
Srinu

15 REPLIES 15

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Expert Contributor

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

Thank you.

 

We will work on this solution and get back. Do we have the same to read data from Amazon-s3 and put into the topic?

 

 

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Expert Contributor

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

Same as previous request. We are looking for source connector here as well to pull the data from Amazon s3 and put in kafka.

 

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

We already have the data in HDFS and we want to pull the data from HDFS and put in in kafka topic.

So, we are looking for source connector here in pulling the data from HDFS and placing in kafka.

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Cloudera Employee

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

@Nandinin ,

We have requirement like spark program are writing the files into HDFS.

So we want to read those files and send to kaka.

 

We know HDFS sink connector is useful for writing to HDFS as well and HDFS source connector is useful when the files written by hdfs sink connector.

HDFS source connector is also not the solution if files written by spark programming.

Please let us know if there is any solutions for this requirement?

 

 

 

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Cloudera Employee

Hello,

 

What is the file format?

Why is it that you say HDFS source connector is also not the solution if files written by spark programming.?


Spark - HDFS - Kafka is your entire flow correct?
Spark to HDFS they have done now you are looking for HDFS - Kafka.

If you can help me understand the file format that Spark saves it while I can find if HDFS Source connector should not be able to help your usecase.

 

 

Re: How to read data from HDFS and place into Kafka (don’t want to use Scala/Spark)? Any utilities or methods?

Explorer

@Nandinin ,

Yes the flow is correct

The files are in parquet format.