Unsubscribing a Kafka Consumer Group from a Topic
The consumption progress in a topic can be viewed on the consumer group details page. When a consumer no longer consumes a topic, unsubscribing the consumer group from the topic can prevent false alarms caused by topic message accumulation.
Notes and Constraints
- This function may not be available for existing Kafka 1.1.0 or 2.3.0 instances. In this case, you can upgrade the instance kernel.
- This function will permanently delete the consumer offset in the topic. Exercise caution.
Procedure
- Log in to the Kafka console.
- Click
in the upper left corner to select the region where your instance is located. - Click the desired instance to go to the instance details page.
- In the navigation pane, choose Instance > Consumer Groups.
- Click the name of the desired consumer group.
- On the Consumer Offset tab page, select the topics to be unsubscribed, and click Unsubscribe on the upper left side. Up to 50 topics can be selected at a time.
- In the Unsubscribe dialog box, click OK.
Unsubscribed topics are no longer displayed on the Consumer Offset tab page.