Table of Contents |
---|
Status
Current state: Under Discussion
...
JIRA: KAFKA-7817 Multiple Consumer Group Management with Regex
PR: #6700
Motivation
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.
Public Interfaces
Code Block | ||||
---|---|---|---|---|
| ||||
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 |
Proposed Changes
Command line interface will be updated with additional `--regex` parameter in combination with --describe, --delete and --reset-offsets command.
Compatibility, Deprecation, and Migration Plan
- New CLI parameter will neither have any impact on existing users nor impact on old behavior
Rejected Alternatives
None.