返回到文章

采纳

编辑于

kafka消费者情况说明

kafka

查看消费者情况

TOPIC    PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG   CONSUMER-ID                                     HOST            CLIENT-ID
order    0          4               4               0     consumer-1-2e9805db-e021-4595-8c62-92f8691fbf20 /172.16.1.13    consumer-1
order    1          5               5               0     consumer-1-2e9805db-e021-4595-8c62-92f8691fbf20 /172.16.1.13    consumer-1
order    2          5               5               0     consumer-1-9e65dcfb-246f-4043-aaf7-3ee83532237f /172.16.1.13    consumer-1
order    3          4               4               0     consumer-1-ee17939d-1ffe-42c7-8261-b19be8acea43 /172.16.1.12    consumer-1

参数含义:

TOPIC:topic
PARTITION:分区id
CURRENT_OFFSET:当前消费到的offset
LOG_END_OFFSET:总条数
LAG:未消费的条数
CONSUMER_ID:消费者ID
HOST:消费者的主机ip

其中 CONSUMER_ID: 这是什么含义?