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 in Apache Kafka by akhtar
• 10,330 points
264 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 by MD
• 22,520 points

Related Questions In Apache Kafka

+1 vote
1 answer

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

Hi@akhtar, You can not use kafka without zookeeper. ...READ MORE

answered Feb 6 in Apache Kafka by MD
• 22,520 points
979 views
+1 vote
12 answers

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

As of kafka 2.3.0 version, there is ...READ MORE

answered Sep 8, 2019 in Apache Kafka by Brajkishore
• 240 points
87,048 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
251 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 in Apache Kafka by MD
• 22,520 points
67 views
0 votes
1 answer

Is Kafka and Zookeeper are required in a Big Data Cluster?

Apache Kafka is one of the components ...READ MORE

answered Mar 22, 2018 in Big Data Hadoop by nitinrawat895
• 10,920 points
612 views
0 votes
1 answer

Error: t: Instance org.acme.seller.Car#HW7722 missing required field oldOwner

This error occurs if you have added a ...READ MORE

answered Jun 21, 2018 in Blockchain by Christine
• 15,810 points

edited Jun 21, 2018 by Christine 409 views