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

后端 未结 4 691
北恋
北恋 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 23:07

    In Kafka 0.11 (or Confluent 3.3) you can reset the offsets of any existing consumer group without having to delete the topic. In fact you can change the offsets to any absolute offset value or timestamp or any relative position as well.

    These new functions are all added with the new --reset-offsets flag on the kafka-consumer-groups command line tool.

    See KIP-122 details here https://cwiki.apache.org/confluence/display/KAFKA/KIP-122%3A+Add+Reset+Consumer+Group+Offsets+tooling

提交回复
热议问题