The zookeeper configuration address used in the following command is--zookeeper 192.168.8.57:2181
Command line to view topic consumption
/home/kafka/bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --group dev_pro_0 --topic dms2_SDFX_texts --zookeeper 192.168.8.57:2181
The meaning of the parameters in the above figure is explained as follows:
- topic: topic name at creation
- pid: partition number
- offset: indicates how many messages the parition has consumed
- logSize: indicates how many messages the partition has written
- Lag: Indicates how many messages have not been consumed.
- Owner: indicates consumers