Yelp / kafka-utils

Apache License 2.0
314 stars 128 forks source link

list_groups returns 0 groups found #234

Open pascals-ager opened 5 years ago

pascals-ager commented 5 years ago

I recently started using using kafka-utils v2.3.0 against a 3 node kafka 1.0 cluster. I am trying to do a basic operation of listing all the consumer groups in my cluster. The kafka-consumer-groups.sh utility returns my groups, but: kafka-consumer-manager --cluster-type=internal --cluster-name=prelease --vvverbose list_groups returns 0 groups with the message:

Consumer Groups:
0 groups found for cluster prelease of type internal

My initial thought was that I had mis-configured something, but I could not figure it out myself.

The get_topic_watermark command on the other hand works perfectly with my configs:

kafka-consumer-manager --cluster-type=internal --cluster-name=prelease get_topic_watermark test_topic
Topic Name: test_topic
    Partition ID: 0
    High Watermark: 565
    Low Watermark: 555

    Partition ID: 1
    High Watermark: 566
    Low Watermark: 554

    Partition ID: 2
    High Watermark: 574
    Low Watermark: 555

Appreciate inputs.

Baisang commented 5 years ago

Hey @pascals-ager , do your groups have non-zero offsets committed, or offsets outside the range of Low and High watermark?