Kafka consumer list

前端 未结 8 1818
日久生厌
日久生厌 2020-12-12 19:38

I need to find out a way to ask Kafka for a list of topics. I know I can do that using the kafka-topics.sh script included in the bin\\ directory.

8条回答
  •  温柔的废话
    2020-12-12 19:59

    Kafka stores all the information in zookeeper. You can see all the topic related information under brokers->topics. If you wish to get all the topics programmatically you can do that using Zookeeper API.

    It is explained in detail in below links Tutorialspoint, Zookeeper Programmer guide

提交回复
热议问题