Short answer is no. Simple consumer has to know the partition ids in advance to fetch the data. If you want dynamic partition assignments you need to use high-level consumer.
Guozhang On Thu, Jun 19, 2014 at 1:30 AM, rafeeq s <rafeeq.ec...@gmail.com> wrote: > I am trying to consume kafka messages from all partitions(dynamically > assign all partitions) using simpleConsumer. > > Is there a way to read messages dynamically from *all partitions* using > SimpleConsumer ? > > Thanks in advance! > > > Regards, > > Rafeeq S > *(“What you do is what matters, not what you think or say or plan.” )* > -- -- Guozhang