Kafka教程
(1)查看各个partition消息最大offset
bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list ip:9092 --topic mytopic --time -1
结果:
mytopic:0:100 mytopic:1:101 mytopic:2:100000 mytopic:3:0
(2)查看各个partition消息最小offset
bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list ip:9092 --topic mytopic --time -2
结果:
mytopic:0:0 mytopic:1:0 mytopic:2:0 mytopic:3:0
(3)