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 卡夫卡集群的GKE集装箱化_Apache Kafka_Google Kubernetes Engine - Fatal编程技术网

Apache kafka 卡夫卡集群的GKE集装箱化

Apache kafka 卡夫卡集群的GKE集装箱化,apache-kafka,google-kubernetes-engine,Apache Kafka,Google Kubernetes Engine,我正试图在GoogleKubernetes引擎上按照以下引用对Kafka集群进行容器化 当我看到Kafka代理和Zookepar pod启动并运行时,任何主题的写操作都失败了,错误如下 bash-4.4# kafka-console-producer.sh --topic test1 --broker-list PLAINTEXT://34.70.196.179:9092 >hello [2020-03-20 11:55:24,806] WARN [Producer clientId=c

我正试图在GoogleKubernetes引擎上按照以下引用对Kafka集群进行容器化

当我看到Kafka代理和Zookepar pod启动并运行时,任何主题的写操作都失败了,错误如下

bash-4.4# kafka-console-producer.sh --topic test1 --broker-list PLAINTEXT://34.70.196.179:9092
>hello
[2020-03-20 11:55:24,806] WARN [Producer clientId=console-producer] Error while fetching metadata 
with correlation id 34 : {test1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
我描述了这些话题,发现领导人没有当选

bash-4.4# kafka-topics.sh --describe --zookeeper zoo1:2181 --topic test
Topic: test     PartitionCount: 2       ReplicationFactor: 1    Configs:
Topic: test     Partition: 0    Leader: 0       Replicas: 0     Isr: 0
Topic: test     Partition: 1    Leader: 0       Replicas: 0     Isr: 0
bash-4.4# kafka-topics.sh --describe --zookeeper zoo1:2181 --topic admintome-test
Topic: admintome-test   PartitionCount: 1       ReplicationFactor: 1    Configs:
Topic: admintome-test   Partition: 0    Leader: 0       Replicas: 0     Isr: 0

有什么建议吗?提前感谢。

经纪人日志中有什么内容?您是否正确配置了播发的侦听器?顺便说一句,谷歌市场有很多卡夫卡解决方案。其中一些在容器中运行(大部分在GKE上)。不要试着自己编这个。。。