List all kafka topics

后端 未结 15 823
谎友^
谎友^ 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:34

    To read messages you should use:

    kafka-console-consumer.sh --bootstrap-server kafka1:9092,kafka2:9092,kafka3:9092 --topic messages --from-beginning
    

    --bootstrap-server is required attribute. You can use only single kafka1:9020 node.

提交回复
热议问题