You can use a customized partitioner and provide a partitioning key in each
message.

Thanks,

Jun


On Fri, Jan 31, 2014 at 7:57 AM, Abhishek Bhattacharjee <
[email protected]> wrote:

> I want to store equal no.of messages in partitions. For eg. if I have 100
> messages and 2 partitions for a topic then each partition should have 50
> messages.
> Can someone help me with this I am new to kafka so any help will be
> appreciated.
>
> Thanks,
> --
> *Abhishek Bhattacharjee*
> *Pune Institute of Computer Technology*
>

Reply via email to