0

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.

1 Answers1

0

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
Joe M
  • 2,527
  • 1
  • 25
  • 25