Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.6.0
-
A new property called keyHeader is added for Kafka Sink. It can be used to specify which header is used as the key of Kafka message. Its default value is "key", so this patch is compatible with Flume 1.6.
Description
In Flume 1.6.0, Kafka Sink uses the topic and key properties from the FlumeEvent headers to send events to Kafka. If topic exists in the headers, the event will be sent to that specific topic, overriding the topic configured for the Sink. If key exists in the headers, the key will used by Kafka to partition the data between the topic partitions. Events with same key will be sent to the same partition. If the key is null, events will be sent to random partitions.
But if Kafka Sink is able to select which header as the key, much convieience will be brought to Flume users.
Attachments
Attachments
Issue Links
- is related to
-
FLUME-2985 Consider consolidating Kafka offset migration code
- Open