Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache kafka 在最近的卡夫卡版本中,消费群体列表存储在哪里?_Apache Kafka_Apache Zookeeper_Kafka Consumer Api - Fatal编程技术网

Apache kafka 在最近的卡夫卡版本中,消费群体列表存储在哪里?

Apache kafka 在最近的卡夫卡版本中,消费群体列表存储在哪里?,apache-kafka,apache-zookeeper,kafka-consumer-api,Apache Kafka,Apache Zookeeper,Kafka Consumer Api,显然,在早期的卡夫卡版本中,某个消费群体的消费者列表存储在zookeeper中。 最新卡夫卡发行版的这些信息存储在哪里?Zookeeper中仍然提供消费者群体。自0.9“高级”消费者以来,其偏移量存储在卡夫卡中自卡夫卡0.10以来,消费者组列表存储在\uu consumer\u offset主题中 该主题包含提交的偏移量和组元数据(group.id、members、generation、leader等)。使用GroupMetadataMessage消息存储组(偏移使用OffsetsMessage

显然,在早期的卡夫卡版本中,某个消费群体的消费者列表存储在zookeeper中。
最新卡夫卡发行版的这些信息存储在哪里?

Zookeeper中仍然提供消费者群体。自0.9“高级”消费者以来,其偏移量存储在卡夫卡中

自卡夫卡0.10以来,消费者组列表存储在
\uu consumer\u offset
主题中

该主题包含提交的偏移量和组元数据(group.id、members、generation、leader等)。使用
GroupMetadataMessage
消息存储组(偏移使用
OffsetsMessage

可以使用GroupMetadataMessageFormatter转储组元数据。例如:

./bin/kafka-console-consumer.sh \
  --formatter "kafka.coordinator.group.GroupMetadataManager\$GroupMetadataMessageFormatter" \
  --bootstrap-server localhost:9092 \
  --topic __consumer_offsets

请注意,这是一个压缩主题,因此要获得组列表,需要“具体化”所有条目。这就是代理在使用API时所做的

你所说的物化条目是什么意思@Mickaelth主题压缩,这意味着您需要处理所有条目以计算最终状态。看见