Kafka consumer list

前端 未结 8 1816
日久生厌
日久生厌 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 20:17

    Use kafka-consumer-groups.sh

    For example

    bin/kafka-consumer-groups.sh  --list --bootstrap-server localhost:9092
    
    bin/kafka-consumer-groups.sh --describe --group mygroup --bootstrap-server localhost:9092
    

提交回复
热议问题