kafka检查消费者位置

半兽人 发表于: 2015-03-10   最后更新时间: 2016-04-07  
  •   40 订阅,1907 游览

检查消费者的位置


Sometimes it's useful to see the position of your consumers. We have a tool that will show the position of all consumers in a consumer group as well as how far behind the end of the log they are. To run this tool on a consumer group named my-group consuming a topic named my-topic would look like this:
有时候你需要看到你消费者的位置,我们有一个工具,它们将显示所有消费者在消费组中的位置以及日志的结尾,示例。
 > bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zkconnect localhost:2181 --group test
Group           Topic                          Pid Offset          logSize         Lag             Owner
my-group        my-topic                       0   0               0               0               test_jkreps-mn-1394154511599-60744496-0
my-group        my-topic                       1   0               0               0               test_jkreps-mn-1394154521217-1a0be913-0






发表于: 1年前   最后更新时间: 9月前   游览量:1907
上一条: kafka镜像集群之间的数据
下一条: kafka扩大集群
评论…

  • 这是旧的版本吧
  • 评论…
    • in this conversation
      提问