偏移量存储为Kafka时如何检查消费者偏移量? [英] How to check consumer offsets when the offset store is Kafka?
本文介绍了偏移量存储为Kafka时如何检查消费者偏移量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从0.8.1.1版本开始,Kafka提供了在Kafka中存储偏移量的规定,而不是Zookeeper(请参见此)
From 0.8.1.1 release, Kafka provides the provision for storage of offsets in Kafka, instead of Zookeeper (see this). I'm not able to figure out how to check the details of offsets consumed, as the current tools only provide consumer offset count checks for zookeeper only.(I'm referring to this)
如果有任何工具可用来检查消费者抵销,请告知我.
If there are any tools available to check consumer offset, please let me know.
推荐答案
我正在使用kafka 0.8.2,并将偏移量存储在kafka中.该工具对我有用:
I'am using kafka 0.8.2 with offsets stored in kafka. This tools works good for me:
./kafka-run-class.sh kafka.tools.ConsumerOffsetChecker
--topic your-topic
--group your-consumer-group
--zookeeper localhost:2181
您将获得所需的所有信息:主题大小,消费者滞后,所有者.
You get all informations you need: topic size, consumer lag, owner.
这篇关于偏移量存储为Kafka时如何检查消费者偏移量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文