when using ConsumerGroupCommand you need to make sure your consumer groups are alive. It only queries offsets for consumer groups that are currently connecting to brokers
On Fri, 19 Feb 2016 at 13:35 Amoxicillin <shee...@gmail.com> wrote: > Hi, > > I use kafka.tools.ConsumerOffsetChecker to view the consumer offset > status, and can get the correct output, along with a > warning: ConsumerOffsetChecker is deprecated and will be dropped in > releases following 0.9.0. Use ConsumerGroupCommand instead. > > But when I altered to bin/kafka-run-class.sh > kafka.admin.ConsumerGroupCommand --zookeeper 127.0.0.1:2181 --list, there > was nothing to output. > > Did I missed some parameters to run ConsumerGroupCommand? The version is > kafka _2.11-0.9.0.0, and any suggestion is appreciated. >