How do I delete a Kafka Consumer Group to reset offsets?

后端 未结 4 790
北恋
北恋 2021-01-07 22:44

I want to delete a Kakfa consumer group so that when the application creates a consumer and subscribes to a topic it can start at the beginning of the topic data.

Th

4条回答
  •  暖寄归人
    2021-01-07 22:56

    Upgrading to the just released Confluent Platform 3.2 with Kafka 0.10.2 solved my underlying issue. When I delete a topic, offset information is now correctly reset. So when I create a topic with the same name, consumers start from the beginning of the new data.

    I still can't delete new style consumer groups with the kafka-consumer-groups tool, but my underlying issue is solved.

    Before Kafka 0.10.2, there were hacks, but no clean solution to this issue.

提交回复
热议问题