forked from docs/doc-exports
Reviewed-by: Antonova, Ekaterina <ekantono@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
5.5 KiB
5.5 KiB
Querying the Kafka Consumer Group List
This section describes how to query the consumer group list.
Viewing the Consumer Group List (Console)
- Log in to the console.
- Click
in the upper left corner to select a region.
- Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.
- Click the desired Kafka instance to view its details.
- In the navigation pane, choose the Consumer Groups tab.
The consumer group name, status, and Coordinator (ID) are displayed. Coordinator (ID) indicates the broker where the coordinator component is located. The consumer group status can be:
- DEAD: The consumer group has no member or metadata.
- EMPTY: The consumer group has metadata but has no member.
- PREPARING_REBALANCE: The consumer group is to be rebalanced.
- COMPLETING_REBALANCE: All members have joined the consumer group.
- STABLE: Members in the consumer group can consume messages normally.
- (Optional) To query a consumer group, enter a consumer group name or status, Coordinator (ID), or keyword, then press Enter.
- (Optional) To refresh the consumer group list, click
in the upper right corner.
Viewing the Consumer Group List (Kafka CLI)
- For a Kafka instance with ciphertext access disabled, run the following command in the /bin directory of the Kafka client:
./kafka-consumer-groups.sh --bootstrap-server ${connection-address} --list
- For a Kafka instance with ciphertext access enabled, do as follows:
- (Optional) For the Kafka security protocol, is SASL_PLAINTEXT or SASL_SSL used?
- SASL_PLAINTEXT: Skip this step if the username and password are already set. In other cases, create the ssl-user-config.properties file in the /config directory of the Kafka client. Add the username and password by referring to 3.
- SASL_SSL: Skip this step if the username, password, and SSL certificate are already set. In other cases, create the ssl-user-config.properties file in the /config directory of the Kafka client. Add the username and password, and the SSL certificate configuration by referring to 3.
- Run the following command in the /bin directory of the Kafka client:
./kafka-consumer-groups.sh --bootstrap-server ${connection-address} --list --command-config ./config/ssl-user-config.properties
- (Optional) For the Kafka security protocol, is SASL_PLAINTEXT or SASL_SSL used?
Parent topic: Managing Consumer Groups