Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2848

Kafka Source could not work with Kafka Sink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • None
    • Sinks+Sources
    • IMHO any

    Description

      KafkaSource stores information from which topic a record was read. This information is stored in an event header with the key "topic" (see org.apache.flume.source.kafka.KafkaSource line 108).
      KafkaSink can be instructed to store record in a different topic than the one in configuration (dynamic destination). To do that "topic" header have to be set in an event (see org.apache.flume.sink.kafka.KafkaSink line 107).

      When this two features are combined we have infinite loop - KafkaSink writes records to the topic which is read by KafkaSource.

      Two solve the problem fields:
      org.apache.flume.sink.kafka.KafkaSink.TOPIC_HDR
      org.apache.flume.source.kafka.KafkaSourceConstants.TOPIC
      need to have different values.

      Attachments

        1. FLUME-2789-1.patch
          10 kB
          Li Ye
        2. FLUME-2789-2.patch
          5 kB
          Li Ye

        Issue Links

          Activity

            People

              Unassigned Unassigned
              afirus Arkadiusz Firus
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified