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

Option [bootstrap-server] is not valid with [zookeeper]

Explorer

using the below command i created the producer session

./kafka-console-producer.sh --broker-list mn.xxxxxxxx.com:6667 --topic dm_sample1

<entered some text >


open one more session and typed the below consumer command

./kafka-console-consumer.sh --bootstrap-server mn.xxxxxx.com:9092 --zookeeper localhost:2181 --topic dm_sample1 --from-beginning

and

./kafka-console-consumer.sh --bootstrap-server mn.xxxx.com:6667--zookeeper localhost:2181 --topic dm_sample1 --from-beginning


after trying with the both commands , still Im getting the same error

error MSG :

Option [bootstrap-server] is not valid with [zookeeper].


version : kafka 1.0.1 , ZK v3.4.6 and hdp v3

1 REPLY 1

New Contributor

@Naveenraj Devadoss please use your command without bootstarp-server

./kafka-console-consumer.sh --zookeeper localhost:2181 --topic dm_sample1 --from-beginning

if still wouldn't work,please use zookeeper server host instead of localhost.