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

NPE in ConsumerGroupCommand when describe consumer group

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • None
    • tools
    • None

    Description

       

      Got the following error when run kafka-consumer-groups to describe a consumer group.

      Command:

      kafka-consumer-groups --bootstrap-server $BROKER_LIST --command-config consumer.properties --describe --group $CONSUMER_GROUP_NAME

       Error (need change tools-log4j.properties log level to DEBUG): 

      Error: Executing consumer group command failed due to null
      [2018-07-16 20:05:21,353] DEBUG Exception in consumer group command (kafka.admin.ConsumerGroupCommand$)
      java.lang.NullPointerException
      at scala.Predef$.Long2long(Predef.scala:363)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$getLogEndOffsets$2.apply(ConsumerGroupCommand.scala:612)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$getLogEndOffsets$2.apply(ConsumerGroupCommand.scala:610)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      at scala.collection.immutable.List.foreach(List.scala:392)
      at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
      at scala.collection.immutable.List.map(List.scala:296)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.getLogEndOffsets(ConsumerGroupCommand.scala:610)
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.describePartitions(ConsumerGroupCommand.scala:328)
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.collectConsumerAssignment(ConsumerGroupCommand.scala:308)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.collectConsumerAssignment(ConsumerGroupCommand.scala:544)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$10$$anonfun$13.apply(ConsumerGroupCommand.scala:571)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$10$$anonfun$13.apply(ConsumerGroupCommand.scala:565)
      at scala.collection.immutable.List.flatMap(List.scala:338)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$10.apply(ConsumerGroupCommand.scala:565)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService$$anonfun$10.apply(ConsumerGroupCommand.scala:558)
      at scala.Option.map(Option.scala:146)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.collectGroupOffsets(ConsumerGroupCommand.scala:558)
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.describeGroup(ConsumerGroupCommand.scala:271)
      at kafka.admin.ConsumerGroupCommand$KafkaConsumerGroupService.describeGroup(ConsumerGroupCommand.scala:544)
      at kafka.admin.ConsumerGroupCommand$.main(ConsumerGroupCommand.scala:77)
      at kafka.admin.ConsumerGroupCommand.main(ConsumerGroupCommand.scala)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              echo.xu Echo Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: