[英]Kafka My producer works topic is Par: 0 ,Lead:1, Rep:1, Isr:1 BUT NOT Par: 0 ,Lead:2, Rep:2, Isr:2
I have a kakfa cluster with 3 kafka nodes and 3 zk nodes.我有一个带有 3 个 kafka 节点和 3 个 zk 节点的 kakfa 集群。
The producer is on AWS machine trying to push data on my kafka cluster running on my intranet servers.生产者在 AWS 机器上,试图将数据推送到我的内部网服务器上运行的 kafka 集群上。
When the topic (JOB_AWS_14) is created from console with从控制台创建主题 (JOB_AWS_14) 时
Partition: 0 Leader: 1 Replicas: 1 Isr: 1
it works fine.它工作正常。
But where a topic(JOB_AWS_8) is created with但是在创建主题(JOB_AWS_8)的地方
Partition: 0 Leader: 2 Replicas: 2 Isr: 2
it is not working.它不工作。
What settings went wrong and how to correct it.哪些设置出错以及如何更正。
Please help me.请帮我。
# bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic JOB_AWS_14
Topic:JOB_AWS_14 PartitionCount:1 ReplicationFactor:1 Configs:
Topic: JOB_AWS_14 Partition: 0 Leader: 1 Replicas: 1 Isr: 1
# bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic JOB_AWS_8
Topic:JOB_AWS_8 PartitionCount:1 ReplicationFactor:1 Configs:
Topic: JOB_AWS_8 Partition: 0 Leader: 2 Replicas: 2 Isr: 2
Your producer is reachable to Kafka node-1 which is leader for topic "JOB_AWS_14" so you are able to produce messages to that topic while coming to topic "JOB_AWS_8" leader is Kafka node-2 and your producer might not be reachable to Node-2.您的生产者可以访问 Kafka node-1,它是主题“JOB_AWS_14”的领导者,因此您可以向该主题生成消息,而主题“JOB_AWS_8”领导者是 Kafka node-2,并且您的生产者可能无法访问 Node- 2. Make sure your producer is reachable to node-2.
确保您的生产者可以访问节点 2。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.