Missing required argument zookeeper

0 votes

Hi,

I am trying to run the consumer server in Kafka. But I am getting the below error.

./kafka-console-consumer.sh --bootstrap-server localhost:9092,localhost:9093 --topic SimpleProducerTopic --from-beginning
Missing required argument "[zookeeper]"
Option                                  Description                           
------                                  -----------                           
--blacklist <blacklist>                 Blacklist of topics to exclude from   
                                          consumption.                        
--bootstrap-server <server to connect                                         
  to>                                                                         
--consumer.config <config file>         Consumer config properties file.      
--csv-reporter-enabled                  If set, the CSV metrics reporter will 
                                          be enabled   

How can I fix it? Can anybody help me?

Thank You

Feb 10, 2020 in Apache Kafka by akhtar
• 38,170 points
869 views

1 answer to this question.

0 votes

Hi@akhtar,

I guess you are using the old version of kafka. So you can install the new version or you can add --new-consumer in your command.

$ ./bin/kafka-console-consumer.sh --new-consumer --bootstrap-server localhost:9092 --topic SimpleProducerTopic --from-beginning

Hope this will help you.

Thank You

answered Feb 10, 2020 by MD
• 95,040 points

Related Questions In Apache Kafka

+1 vote
1 answer
+1 vote
3 answers

What is the need of zookeeper in kafka? Can I use kafka without zookeeper?

I just would like to complete the ...READ MORE

answered Dec 3, 2020 in Apache Kafka by Tamás
• 140 points
4,402 views
0 votes
1 answer
0 votes
1 answer

How to start Zookeeper service?

Hi@akhtar, Before you start the Zookeeper service, you need ...READ MORE

answered Dec 7, 2020 in Apache Kafka by MD
• 95,040 points
66 views
+1 vote
14 answers

How can I delete all the messages from a Kafka topic?

To delete all the messages from a Kafka topic.  There are many approach ...READ MORE

answered Jun 19, 2020 in Apache Kafka by Pawan
• 380 points
145,489 views
+1 vote
0 answers

Want to delete consumed topic programatically

directly delete kafka log folder and zeekeeper ...READ MORE

Jun 4, 2019 in Apache Kafka by sarvesh
398 views
0 votes
1 answer

How can I create a topic in apache kafka?

Hi@akhtar, To create kafka topic you can use ...READ MORE

answered Feb 6, 2020 in Apache Kafka by MD
• 95,040 points
184 views
0 votes
1 answer