Created
June 19, 2019 15:04
-
-
Save chadmcrowell/313147b0a8e66a1a49f46916369e5176 to your computer and use it in GitHub Desktop.
Topic Configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all the consumer groups | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--list | |
# Describe a specific consumer group | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--describe \ | |
--group application1 | |
# Describe the active members of the group | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--describe \ | |
--group application1 \ | |
--members | |
# If the group has active members, get a more verbose output | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--describe \ | |
--group application1 \ | |
--members \ | |
--verbose | |
# Describe the state of the group | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--describe \ | |
--group application1 \ | |
--state | |
# Delete a consumer group (only works if there are no active members). | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--delete \ | |
--group application1 | |
# Delete multiple consumer groups | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka1:9092 \ | |
--delete \ | |
--group application1 \ | |
--group application2 | |
# Reset offsets for a consumer group | |
bin/kafka-consumer-groups.sh --bootstrap-server kafka:9092 \ | |
--reset-offsets \ | |
--group application1 \ | |
--topic topic-1 \ | |
--to-latest | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Click here to get back to the Apache Kafka Deep Dive Interactive Diagram: https://www.lucidchart.com/documents/view/556d9075-a316-4d40-b5dc-225c4353d1e8