kafka查看未被消费的消息
$ kubectl exec -it gitee-kafka-0 -n gitee bash
unset JMX_PORT
$ kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list
0
872ef76ddeb5a01dcca817aa564e39c5
LatchGroup-d9c004d9-9568-4c3c-83c4-1dd61de25208
CodeProjectGroup-50782662-ae8f-49e3-a2ed-7f9449438de8
$ kafka-consumer-groups.sh --bootstrap-server node1:9092 --describe --group CodeProjectGroup-50782662-ae8f-49e3-a2ed-7f9449438de8
可以看到当前的消费进度(CURRENT-OFFSET)、消息进度(LOG-END-OFFSET)、落后量(LAG):