Hi All!

I am looking for a way to get a list of all the consumer groups that have 
offsets stored for a particular topic.
I was thinking of making a request to describe all consumer groups, then 
filtering for the groups with offsets in the topic I care about.

I noticed, however, that while Kafka’s admin APIs seem to support requests to 
describe more than one group at a time:
https://github.com/apache/kafka/blob/0.11.0/core/src/main/scala/kafka/admin/AdminClient.scala#L296
https://github.com/apache/kafka/blob/0.11.0/clients/src/main/java/org/apache/kafka/common/requests/DescribeGroupsRequest.java#L34
the current 0.11 AdminClient does not have a feature for making a single 
request to describe multiple consumer groups.

Is there a reason for this feature not being present in AdminClient? Does 
anyone know of a better way to list consumer groups by topic, or whether 
directly calling a Kafka network client with a DescribeGroupsRequest with a 
large number of consumer group ID’s could noticeably impact the performance of 
the Kafka brokers?

Thanks,
Rory

Reply via email to