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

consumer group error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.0
    • None
    • admin
    • None

    Description

      Hi

      Today, I found an online error. To fix this problem, I needed to reset offset, but in the process, I reversed the partition and offset values, and commitAsync,then I found using the command "bin/kafka-consumer-groups --bootstrap-server Kafka01:9092 --group my_consumer_name – description" is pending.

      I print log use "adminClient.listGroupOffsets" ,And I found a log like <Topic, Partition> / <MyTopic, 78908765> .

      In this case, what should I do? I expect to delete the wrong information under consumer group, but I haven't found the right way. My version of Kafka is 1.0.0.

       

      ```

      AdminClient adminClient = AdminClient.createSimplePlaintext("bootstrap_servers");
      scala.collection.immutable.Map<TopicPartition, Object> offsets = adminClient.listGroupOffsets("my_consumer_name");
      JavaConversions.asJavaCollection(offsets.keySet()).forEach(tp-> System.out.println(tp

       

      log just like

      MyTopic, 78908765

      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            sijifeng sijifeng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: