Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»General Articles»(Resolved) zookeeper is not a recognized option – Kafka

    (Resolved) zookeeper is not a recognized option – Kafka

    RahulBy RahulMay 6, 20221 Min ReadUpdated:June 14, 2022

    Problem

    Recently, I installed Apache Kafka on the Ubuntu system. When tried to run the consumer console script, I found the error message that “zookeeper is not a recognized option”.

    ./bin/kafka-console-consumer.sh --topic testTopic --zookeeper localhost:9092 
    
    zookeeper is not a recognized option
    Option                                   Description
    ------                                   -----------
    --bootstrap-server 
    --consumer-property                            properties in the form key=value to
    ...
    ...
    

    Solution

    After searching a bit time, I visited to Apache Kafa QUICKSTART guide. Here I found the solution that Kafka has removed --zookeeper option and replaced it with a new option --bootstrap-server .

    So the new command would be like:

    ./bin/kafka-console-consumer.sh --topic testTopic --bootstrap-server  localhost:9092 
    

    Hope this will help you to resolve the Kafka issue.

    error Kafka
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install LightDM Display Manager on Ubuntu
    Next Article (Resolved) Please install all available updates for your release before upgrading

    Related Posts

    How to Install Ionic Framework on Ubuntu 22.04

    3 Mins Read

    What is the /etc/hosts file in Linux

    Updated:June 27, 20222 Mins Read

    How to Create DMARC Record For Your Domain

    3 Mins Read

    What is Computer Hardware?

    4 Mins Read

    What is Information Technology (IT)?

    Updated:June 20, 20223 Mins Read

    How to Recycle IIS Application Pool in Windows

    Updated:June 16, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.