Baby.zhou
Baby.zhou

Reputation: 561

Kafka consumers path in zookeeper is empty?

I use zkCli.sh to list the kafka paths in zookeeper.

By the Kafka+data+structures+in+Zookeeper document,i find all paths in the doc can match the document,except consumers path.

Command ls /consumers,response [],But kafka manager of yahoo can get consumer info,such as LogSize,Consumer Offset and so on.

Upvotes: 2

Views: 2571

Answers (1)

amethystic
amethystic

Reputation: 7091

That's the new consumer which does not depend on Zookeeper anymore. Zk node '/consumers' is just for old consumers. The reason why you could find consumer info in KafkaManager might because it supports the new consumer already.

Kafka ships with a command kafka-consumer-groups.sh which can be used to check status for both old consumer and new consumer.

Upvotes: 5

Related Questions