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,260 points
3,229 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,460 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 4, 2020 in Apache Kafka by Tamás
• 140 points
8,757 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,460 points
2,553 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
229,457 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
1,648 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,460 points
1,157 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP