Re: Setting kafka headers in ProducerRecord

2020-06-01 Thread Matthias J. Sax
> I >> don't want the records to be distributed to available partitions based on >> kafka's default mechanism and don't want to specify the partition by >> myself This seems to be a contradiction. If you don't want either of them, what do you want? Btw: it is ok to pass `null` as partition; for

Setting kafka headers in ProducerRecord

2020-06-01 Thread Pushkar Deole
Hi All, I need to use Kafka header in the ProducerRecord, however I see the constructor to provide headers also need to mention the partition number. I don't want the records to be distributed to available partitions based on kafka's default mechanism and don't want to specify the partition by