explain bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zookeeper localhost:2181 --group group1 -
can explain output of below command:
bin/kafka-run-class.sh kafka.tools.consumeroffsetchecker --zookeeper localhost:2181 --group group1
output:
group topic pid offset logsize lag owner group1 nil_rf2_p2 0 2 2 0 group1_nilotpal-1469374217666-b7619d68-0 group1 nil_rf2_p2 1 2 3 1 group1_nilotpal-1469374217666-b7619d68-0
i need explanation on each columns pid,offset,logsize,lag,owner.
i have 1 consumer running , following command, why 2 rows apperaing the above command.
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic nil_rf2_p2 --consumer.config config/consumer1.properties sarkar hello again!!
thanks in advance!!
the columns have following meaning:
pid
: partition idoffset
: latest committed offset partition corresponding consumer grouplogsize
: number of messages stored in partitionlag
: number of not yet consumed message partition corresponding consumer group (ie,lag = logsize - offset
)owner
: unique id of running consumer thread
furthermore, consumeroffestchecker
shows row each topic partition. topic nil_rf2_p2
have 2 partitions.
Comments
Post a Comment