kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marko Bonaći <marko.bon...@sematext.com>
Subject Re: Determine the number of consumers
Date Fri, 08 Jan 2016 17:09:23 GMT
Hello again Cosmin :)
I think this is because offsets are kept in a special _consumer_offsets
topic, as opposed to ZK previously.
Take a look here:
http://search-hadoop.com/m/uyzND1T1i3BNkRFM1&subj=Re+Kafka+0+8+2+1+how+to+read+from+__consumer_offsets+topic+

Marko Bonaći
Monitoring | Alerting | Anomaly Detection | Centralized Log Management
Solr & Elasticsearch Support
Sematext <http://sematext.com/> | Contact
<http://sematext.com/about/contact.html>

On Fri, Jan 8, 2016 at 4:07 PM, Cosmin Marginean <cosmarginean@gmail.com>
wrote:

> Hi,
>
> Is there a reliable way to determine the number of consumers for a topic
> (or at least the number of consumer groups).
> I’m using Kafka 0.9.0.0 and both the ones below return empty sets
>
> zkUtils.getAllConsumerGroupsForTopic(topic);
>
> OR
>
> zkUtils.getConsumerGroups();
>
> Thanks in advance
> Cos
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message