1.列出topics
[yeemiao@elk1 bin]$ ./kafka-topics.sh --zookeeper 10.26.41.102:2181,10.26.41.60:2181,10.27.181.169:2181 --list
__consumer_offsets
business-logs
nginx-logs
np-logs
xdm-logs
zjs-logs
2.查看topics信息
./kafka-topics.sh --zookeeper 10.26.41.102:2181,10.26.41.60:2181,10.27.181.169:2181 --describe --topic np-logs
3.查看消费组
./kafka-consumer-groups.sh --bootstrap-server 10.26.41.102:9092,10.26.41.60:9092,10.27.181.169:9092 --list
4.查看消费组
./kafka-consumer-groups.sh --bootstrap-server 10.26.41.102:9092,10.26.41.60:9092,10.27.181.169:9092 --describe --group logstash
旧版
./kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zookeeper 10.26.41.102:2181,10.26.41.60:2181,10.27.181.169:2181 --group logstash --topic __consumer_offsets
标签:10.26,10.27,--,9092,kafka,2181,日常,维护 From: https://www.cnblogs.com/hxlasky/p/16813587.html