Kafka - 用于获取此消费者提交的当前偏移量的命令

Kafka - command to fetch the current offset committed by this consumer

我正在阅读文档,除了使用 "committed" 方法来获取当前消费者、消费者组的每个分区的当前提交偏移量之外,没有找到其他方法。

有没有简单的方法,命令找出消费者的相同提交偏移量?

您可以按照文档中的说明使用 Kafka 工具 checking consumer position

> bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group my-group