简体   繁体   English

带有引导服务器的 kafka 主题描述显示了不同的主题配置

[英]kafka topic description with bootstrap servers shows different topic configs

[root@AdtechQAxxxx ~]# /opt/kafka-2.3.0/bin/kafka-topics.sh  --zookeeper 192.169.xx.xx:2181 --describe --topic dl_query
Topic:dl_query  PartitionCount:10       ReplicationFactor:2     Configs:
        Topic: dl_query Partition: 0    Leader: 3       Replicas: 3,1   Isr: 3,1
        Topic: dl_query Partition: 1    Leader: 1       Replicas: 1,2   Isr: 1,2
        Topic: dl_query Partition: 2    Leader: 2       Replicas: 2,3   Isr: 2,3
        Topic: dl_query Partition: 3    Leader: 3       Replicas: 3,2   Isr: 3,2
        Topic: dl_query Partition: 4    Leader: 1       Replicas: 1,3   Isr: 1,3
        Topic: dl_query Partition: 5    Leader: 2       Replicas: 2,1   Isr: 2,1
        Topic: dl_query Partition: 6    Leader: 3       Replicas: 3,1   Isr: 3,1
        Topic: dl_query Partition: 7    Leader: 1       Replicas: 1,2   Isr: 1,2
        Topic: dl_query Partition: 8    Leader: 2       Replicas: 2,3   Isr: 2,3
        Topic: dl_query Partition: 9    Leader: 3       Replicas: 3,2   Isr: 3,2
[root@AdtechQAxxxx ~]# /opt/kafka-2.3.0/bin/kafka-topics.sh  --bootstrap-server 192.169.xx.xx:9092 --describe --topic dl_query
Topic:dl_query  PartitionCount:10       ReplicationFactor:2     **Configs:compression.type=gzip,segment.bytes=1073741824,max.message.bytes=100001200**
        Topic: dl_query Partition: 0    Leader: 3       Replicas: 3,1   Isr: 3,1
        Topic: dl_query Partition: 1    Leader: 1       Replicas: 1,2   Isr: 1,2
        Topic: dl_query Partition: 2    Leader: 2       Replicas: 2,3   Isr: 2,3
        Topic: dl_query Partition: 3    Leader: 3       Replicas: 3,2   Isr: 3,2
        Topic: dl_query Partition: 4    Leader: 1       Replicas: 1,3   Isr: 1,3
        Topic: dl_query Partition: 5    Leader: 2       Replicas: 2,1   Isr: 2,1
        Topic: dl_query Partition: 6    Leader: 3       Replicas: 3,1   Isr: 3,1
        Topic: dl_query Partition: 7    Leader: 1       Replicas: 1,2   Isr: 1,2
        Topic: dl_query Partition: 8    Leader: 2       Replicas: 2,3   Isr: 2,3
        Topic: dl_query Partition: 9    Leader: 3       Replicas: 3,2   Isr: 3,2

The Kafka-topics command was updated recently to use the AdminClo class, which requires the bootstrap server instead of Zookeeper, with the eventual goal to remove the dependencies on Zookeeper completely (KIP-500). Kafka-topics 命令最近更新为使用 AdminClo 类,它需要引导服务器而不是 Zookeeper,最终目标是完全删除对 Zookeeper 的依赖 (KIP-500)。

As far as why you'd see different topic configs, that data actually is stored in Zookeeper for now, so I'm not sure why you'd see this difference.至于为什么您会看到不同的主题配置,该数据目前实际上存储在 Zookeeper 中,所以我不确定您为什么会看到这种差异。 It's possible the AdminClient returns back the actual broker default configs as well as the topic configs. AdminClient 可能会返回实际的代理默认配置以及主题配置。 Otherwise, maybe create a JIRA or try upgrading Kafka?否则,也许创建一个 JIRA 或尝试升级 Kafka?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM