Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»General Articles»(Resolved) zookeeper is not a recognized option – Kafka

    (Resolved) zookeeper is not a recognized option – Kafka

    By RahulJune 14, 20221 Min Read

    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”.

    Advertisement
    ./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

    Related Posts

    How to List Manually Installed Packages in Ubuntu & Debian

    10 Bash Tricks Every Developer Should Know

    How to Validate Email Address in JavaScript

    View 1 Comment

    1 Comment

    1. Saheb Ettabaa Karim on January 13, 2023 1:39 pm

      Use the bootstrap-server instead
      kafka-topics.sh –bootstrap-server 127.0.0.1:2181 –topic first_topic –create –partitions 3 –replication-factor 1
      Good luck

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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