Kafka 0.11 how to reset offsets

后端 未结 2 1344
梦毁少年i
梦毁少年i 2020-12-01 04:10

I\'m trying to reset consumer offset with latest CLI tools for Kafka.

kafka-consumer-groups.bat --bootstrap-server kafka-host:9092 --group my-group --reset-o         


        
2条回答
  •  半阙折子戏
    2020-12-01 05:07

    By default, --reset-offsets just prints the result of the operation. To actually perform the operation you need to add --execute to your command:

    kafka-consumer-groups.bat --bootstrap-server kafka-host:9092 --group
    my-group --reset-offsets --to-earliest --all-topics --execute
    

提交回复
热议问题