Kafka Consumer Groups CLI

The Kafka Consumer Groups CLI kafka-consumer-groups is used to manage consumer groups in Kafka.

References

Flashcards

From the CLI, look at where each consumer group is at for each topic partition:: kafka-consumer-groups --bootstrap-server localhost:9092 --describe --all-groups

From the CLI, look at where a consumer group adam-people-consumer is at for each topic partition:: kafka-consumer-groups --bootstrap-server localhost:9092 --describe --group adam-people-consumer

From the CLI, dry run reset the adam-pet-consumer group to the earliest position of the topic people:: kafka-consumer-groups --bootstrap-server localhost:9092 --group adam-pet-consumer --reset-offsets --to-earliest --topic people --dry-run

From the CLI, execute a reset for the adam-pet-consumer group to the beginning of the topic people:: kafka-consumer-groups --bootstrap-server localhost:9092 --group adam-pet-consumer --reset-offsets --to-earliest --topic people --execute

From the CLI, reset adam-people-consumer group people topic partition 0 to an offset of 1:: kafka-consumer-groups --bootstrap-server localhost:9092 --group adam-people-consumer --reset-offsets --to-offset 1 --topic people:0 --execute