What command shows all of the topics and offsets of partitions in Kafka?

后端 未结 4 1746
春和景丽
春和景丽 2021-01-30 06:47

I\'m looking for a Kafka command that shows all of the topics and offsets of partitions. If it\'s dynamically would be perfect. Right now I\'m using java code to see these infor

4条回答
  •  生来不讨喜
    2021-01-30 07:17

    If anyone is interested, you can have the the offset information for all the consumer groups with the following command:

    kafka-consumer-groups --bootstrap-server localhost:9092 --all-groups --describe
    

    The parameter --all-groups is available from Kafka 2.4.0

提交回复
热议问题