In order to find this information, we need to login to the Zookeeper Command Line Shell.
cd /usr/local/zookeeper/zookeeper-3.4.9
bin/zkCli.sh -server zookeeper1:2181
Check the topic and its partition for the consumer, your need to type in your topicname and if you have more than 1 partition make sure you do this to every partition
get /consumers/yourcompany/yourtopicname/partition_0
Sample response
{"topology":{"id":"YourTopologyInstanceId-1-1497152721","name":"YourTopologyName"},"offset":3673,"partition":0,"broker":{"host":"81387110753b","port":9092},"topic":"yourTopicName"}
The offset:3673 says up to which offset the Kafka spout has read from this topic's partition 0.
No comments:
Post a Comment