How to view all of the offsets for some consumer groups in Kafka using CLI?

An example of the command to pull all of the offsets for some consumer group in Kafka.

I usually use docker image called 'wurstmeister/kafka' pulled from DockerHub to not install and build Kafka on my environment.

docker run wurstmeister/kafka /opt/kafka/bin/kafka-consumer-groups.sh  --bootstrap-server b-1.localhost:9092,b-2.localhost:9092 --group some_group_prod --offsets --describe

Last updated