无法采集metrics 同时消费报错
前提:在DTA部署的过程中把clickhouse和kafka的依赖zookeeper放在了同一套上面
症状描述:
kafka_exporter 报错topic xxx in middle of leader election
查看topic :bin/kafka-topics.sh --describe --topic xxx --bootstrap-server 127.0.0.1:9092
Topic: projectv_dns_filter_type Partition: 0 Leader: 2 Replicas: 2,1,3 Isr: 2
Topic: projectv_dns_filter_type Partition: 1 Leader: 3 Replicas: 3,2,1 Isr: 3,2
Topic: projectv_dns_filter_type Partition: 2 Leader: 1 Replicas: 1,3,2 Isr: 1
Topic: projectv_dns_filter_type Partition: 3 Leader: None Replicas: 2,3,1 Isr:
Topic: projectv_dns_filter_type Partition: 4 Leader: 3 Replicas: 3,1,2 Isr: 3
Topic: projectv_dns_filter_type Partition: 5 Leader: 1 Replicas: 1,2,3 Isr: 1
明显partitition3 没有选举出来leader
查看controller 负责选举的节点信息正常。
查看broker 下topic的权限 显示正常。那是什么影响了partition 3 的选举呢。
/consumers—消费者、消费者组信息
/admin—删除的topic
/config—配置信息
/controller—控制节点的broker.id(没有ip信息有点遗憾)
/brokers—集群几点信息,topic信息
/controller_epoch—集群经过了多少次controller选取
正当我准备把/controller删除的时候发现删除不掉,原因是clickhouse也是用的这套集群,删除之后就会重新创建。所以解决办法是配置zookeeper connect的时候把两个路径分开这样能够避免使用同一个节点。问题解决!
本文由 妖言君 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Jan 21, 2022 at 04:23 pm