kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BigData dev <bigdatadev...@gmail.com>
Subject Re: any way to manually assign listeners to kafka partitions ?
Date Sat, 25 Mar 2017 17:45:14 GMT
There is a method is consumer is used for getting all partitions for a topic
> *partitionsFor

And next assign method can be used to assign the required partitions for
that consumer
void *assign
> partitions)
So, in each thread you can use these methods, and do the needful.


On Sat, Mar 25, 2017 at 10:35 AM, Laxmi Narayan <nit.dgp673@gmail.com>

> Hi ,
> Is there anyway to get the list of all paritions and assign them to
> individual java threads for constantly listening ?
> Keep learning keep moving .....

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