Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6315

kafka-console-consumer.sh terminating consumer process only for one partition with java.lang.IllegalArgumentException: Unknown compression type id: 5

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.2.1
    • Fix Version/s: None
    • Component/s: compression, consumer, log, security
    • Labels:
      None

      Description

      For a topic, having 3 partitions- kafka-console-consumer.sh is able to process messages for two partitions but for one partition, I'm seeing the below error
      [2017-12-06 18:31:49,831] ERROR Error processing message, terminating consumer process: (kafka.tools.ConsoleConsumer$)
      java.lang.IllegalArgumentException: Unknown compression type id: 5

      Can someone please help on this issue.

      bin/kafka-console-consumer.sh --bootstrap-server xxxxx:9093 --consumer.config /tmp/consumer.poc.properties --max-messages 1 --from-beginning --partition 1 --topic topicx
      [2017-12-06 18:31:49,831] ERROR Error processing message, terminating consumer process: (kafka.tools.ConsoleConsumer$)
      java.lang.IllegalArgumentException: Unknown compression type id: 5
      at org.apache.kafka.common.record.CompressionType.forId(CompressionType.java:46)
      at org.apache.kafka.common.record.Record.compressionType(Record.java:260)
      at org.apache.kafka.common.record.LogEntry.isCompressed(LogEntry.java:89)
      at org.apache.kafka.common.record.RecordsIterator.makeNext(RecordsIterator.java:70)
      at org.apache.kafka.common.record.RecordsIterator.makeNext(RecordsIterator.java:34)
      at org.apache.kafka.common.utils.AbstractIterator.maybeComputeNext(AbstractIterator.java:79)
      at org.apache.kafka.common.utils.AbstractIterator.hasNext(AbstractIterator.java:45)
      at org.apache.kafka.clients.consumer.internals.Fetcher.parseCompletedFetch(Fetcher.java:785)
      at org.apache.kafka.clients.consumer.internals.Fetcher.fetchedRecords(Fetcher.java:480)
      at org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:1061)
      at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:995)
      at kafka.consumer.NewShinyConsumer.receive(BaseConsumer.scala:88)
      at kafka.tools.ConsoleConsumer$.process(ConsoleConsumer.scala:120)
      at kafka.tools.ConsoleConsumer$.run(ConsoleConsumer.scala:75)
      at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:50)
      at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Vinayzxzx VinayKumar
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: