Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.6.0
-
None
-
None
-
Flume 1.6
Description
In my scenario, I need to send messages from a kafka source to a kafka sink , in other workds, transfering messages from a topic A to another topic B.
As a result, I find my kafka sink always sends messages back to topic A.
The reason in the codes is:
KafkaSink.java:
****************************************************************************************
107 if ((eventTopic = headers.get(TOPIC_HDR)) == null)
****************************************************************************************
If the source is a Kafka source, eventTopic won't be null because it is the source topic from the msg header. Therefore, the kafka sink will send the message to its source topic by mistake.
Attachments
Attachments
Issue Links
- is duplicated by
-
FLUME-2814 flume kafka sink does not write events to configured sink topic when source is also from other topic of kafka
- Open
- is related to
-
FLUME-2848 Kafka Source could not work with Kafka Sink
- Open