1. 查看consumer的偏移量
bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --group <groupId> --zookeeper <hostname:port> --topic <topic>