Bootstrap server for Kafka-console-consumer

i am using kafka 1.0.1 - kafka-3.1.0-SNAPSHOT from CDH

On my kafka-1 edge server, I am able to produce messages with with below:

kafka-console-producer --broker-list kafka-1:9092 --topic testtopic

I also able to consume messages on my first node with Zookeeper like:

kafka-console-consumer --zookeeper data1:2181 --topic testtopic --from-beginning

But I get nothing with bootstrap-server option :

kafka-console-consumer --bootstrap-server batch-1:9092 --topic testtopic --from-beginning

Any Help.
Thanks in advance.



Sign In or Register to comment.