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

OffsetsMessageFormatter hits unexpected exception

    XMLWordPrintableJSON

    Details

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

      Description

      Add the following property to config/consumer.properties
      exclude.internal.topics=false

      bin/kafka-console-consumer.sh --consumer.config config/consumer.properties --from-beginning --topic __consumer_offsets --zookeeper localhost:2181 --formatter "kafka.coordinator.GroupMetadataManager\$OffsetsMessageFormatter"

      Processed a total of 1 messages
      [2015-11-13 09:17:06,376] ERROR Unknown error when running consumer: (kafka.tools.ConsoleConsumer$)
      org.apache.kafka.common.protocol.types.SchemaException: Error reading field 'metadata': java.nio.BufferUnderflowException
      at org.apache.kafka.common.protocol.types.Schema.read(Schema.java:71)
      at kafka.coordinator.GroupMetadataManager$.kafka$coordinator$GroupMetadataManager$$readOffsetMessageValue(GroupMetadataManager.scala:861)
      at kafka.coordinator.GroupMetadataManager$OffsetsMessageFormatter.writeTo(GroupMetadataManager.scala:934)
      at kafka.tools.ConsoleConsumer$.process(ConsoleConsumer.scala:114)
      at kafka.tools.ConsoleConsumer$.run(ConsoleConsumer.scala:65)
      at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:43)
      at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala)

        Attachments

          Activity

            People

            • Assignee:
              guozhang Guozhang Wang
              Reporter:
              junrao Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: