Apache Kafka 4 · Consumer groups

Preview an offset reset

Show what resetting to the earliest offset would do, without changing anything. The group must have no active consumers.

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group order-readers --topic orders --reset-offsets --to-earliest --dry-run

Official Apache Kafka 4 documentation

More consumer groups commands

All consumer groups commands · Apache Kafka 4 cheatsheet

Was this page helpful?