List all kafka topics

后端 未结 15 791
谎友^
谎友^ 2020-12-24 00:13

I\'m using kafka 0.10 without zookeeper. I want to get kafka topics list. This command is not working since we\'re not using zookeeper: <

15条回答
  •  自闭症患者
    2020-12-24 00:56

    Kafka 2.2 and up

    Newer versions of Kafka no longer requires ZooKeeper connection string to list topics, but can directly go via the Kafka brokers. kafka-topics.sh is provided in the bin/ folder when downloading Kafka. To list topics, do the following:

    bin/kafka-topics.sh --list --bootstrap-server 
    

提交回复
热议问题