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

Kafka source throws NPE if Kafka record has null key

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      When the Kafka topics contain messages with no key (such as the messages sent by default from kafka-console-producer), Kafka Source throws NPE:

      2014-12-20 12:58:59,604 ERROR
      org.apache.flume.source.kafka.KafkaSource: KafkaSource EXCEPTION, {}
      java.lang.NullPointerException
      at java.lang.String.<init>(String.java:556)
      at org.apache.flume.source.kafka.KafkaSource.process(KafkaSource.java:105)
      at org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:139)
      at java.lang.Thread.run(Thread.java:745)
      )

        Attachments

          Activity

            People

            • Assignee:
              gwenshap Gwen Shapira
              Reporter:
              gwenshap Gwen Shapira
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: