Skip to content

016. CLI. Resetting Offsets.

Rinat Zalyaletdinov edited this page Feb 4, 2019 · 1 revision
  • Reset offsets to earliest
    • $ kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group <group_name> --reset-offsets --to-earliest --execute --topic <topic_name>
  • Shift offsets
    • $ kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group <group_name> --reset-offsets --shift-by <positive_or_negative_number> --execute --topic <topic_name>

Clone this wiki locally