Simple Kafka Consumer not receiving messages

后端 未结 6 2274
萌比男神i
萌比男神i 2021-02-09 15:20

I am a newbie to Kafka and running a simple kafka consumer/producer example as given on KafkaConsumer and KafkaProducer. When I am running consumer from terminal, consumer is re

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-09 15:58

    Try to set enable.partition.eof parameter to false:

    props.put("enable.partition.eof", "false");
    

    That worked for me.

提交回复
热议问题