Current state: Under Discussion
Discussion thread: [DISCUSS] KIP-561: Regex Expressions Support for ConsumerGroupCommand
JIRA: KAFKA-7817 Multiple Consumer Group Management with Regex
PR: #6700
Add ability to manipulate subsets of consumer groups with similar names using regular expressions for operations including --describe, --delete and --reset-offsets.
Suppose we have a huge subset of consumer groups with similar names (group1, group2, ..., groupN) and we want to manipulate them using CLI.
It would be easier to apply regex instead of manually building a sublist of groups.
bin/kafka-consumer-groups.sh --bootstrap-server :9092 --describe --regex group[1-7] bin/kafka-consumer-groups.sh --bootstrap-server :9092 --delete --regex group[1-7] bin/kafka-consumer-groups.sh --bootstrap-server :9092 --reset-offsets --regex group[1-7] \ --topic topic --to-offset 50 |
Command line interface will be updated with additional `--regex` parameter in combination with --describe, --delete and --reset-offsets command.
None.