简体   繁体   中英

kafka-topics.bat --list --bootstrap-server localhost:9092 is not returning list

kafka-topics.bat --list --bootstrap-server localhost:9092 is not returning anything

kafka-topics.bat --list --bootstrap-server localhost:9092 is not showing anything

The above command meant to show me the topic list but it wasn't returning anything.

It can only be two things

  • The cluster at localhost:9092 does not have any topics
  • There are ACL's preventing you from listing topics.

Have you tried creating a topic first? You can do this with

kafka-topics.sh --bootstrap-server localhost:9092 --topic first_topic --create --partitions 3 --replication-factor 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM