kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pushkar Deole <pdeole2...@gmail.com>
Subject Setting kafka headers in ProducerRecord
Date Mon, 01 Jun 2020 06:59:52 GMT
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
myself. What is the option to provide headers without specifying the
partition?

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