GitHub user rmmjohann opened a pull request:

    https://github.com/apache/flume/pull/65

    Kafka Source in combination of Kafka Sink leads to indefinite loop

    Because Kafka Source sets some header fields - especially "topic" - this 
leads to unexpected behavior in combination with the Kafka Sink => The messages 
will be consumed and produced again into that topic until the agent will be 
shut down.
    
    The Kafka Sink determines the topic to which the event should be produced 
to based on a header field "topic" and overwrites the configuration of the sink.
    To (nearly) fix that there are multiple options:
    * update the documentation - done with this PR
    * explicitly allow topic overriding at the kafka sink via a flag
    * write the source topic into another header field - maybe "kafka.topic"

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmmjohann/flume trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flume/pull/65.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #65
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to