Apache Kafka 4 · Consumer groups
Reset offsets
Move the group back to the earliest offset so it reprocesses messages.
bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group order-readers --topic orders --reset-offsets --to-earliest --execute
Caution: The group will reprocess messages, which can cause duplicate side effects. Preview with --dry-run first.
Official Apache Kafka 4 documentation