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 正在将REST代理连接到正在尝试连接到zookeeper的合流云_Apache Kafka_Apache Zookeeper_Confluent Platform_Kafka Rest - Fatal编程技术网

Apache kafka 正在将REST代理连接到正在尝试连接到zookeeper的合流云

Apache kafka 正在将REST代理连接到正在尝试连接到zookeeper的合流云,apache-kafka,apache-zookeeper,confluent-platform,kafka-rest,Apache Kafka,Apache Zookeeper,Confluent Platform,Kafka Rest,我正在尝试将kafka rest代理连接到融合云 kafka-rest-start ccloud-kafka-rest.properties 这是我的属性文件ccloud-kafka-rest.properties client.ssl.endpoint.identification.algorithm=https client.sasl.mechanism=PLAIN consumer.request.timeout.ms=20000 bootstrap.servers=***-****.u

我正在尝试将kafka rest代理连接到融合云

kafka-rest-start ccloud-kafka-rest.properties
这是我的属性文件ccloud-kafka-rest.properties

client.ssl.endpoint.identification.algorithm=https
client.sasl.mechanism=PLAIN
consumer.request.timeout.ms=20000
bootstrap.servers=***-****.us-east-1.aws.confluent.cloud:9092
consumer.retry.backoff.ms=500
client.security.protocol=SASL_SSL
id=kafka-rest-with-ccloud
producer.acks=1
admin.request.timeout.ms=50000
client.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="***" password="***";
运行kafka rest start后,它会尝试连接到zookeeper(zookeeper.connect=localhost:2181)

错误服务器意外死亡:(io.confluent.kafkarest.KafkaRestMain:63) org.I0Itec.zkclient.exception.ZkTimeoutException:无法连接到zookeeper服务器“localhost:2181”,超时30000毫秒

我还试图将zookeeper主机设置为空,但没用。
如何关闭与zookeeper的连接?

zookeeper.connect属性的默认值为localhost:2181。看见 您需要用汇合云的动物园管理员的地址填充它


请参阅有关将rest代理连接到kafka cloud的说明

请共享服务器配置,否则影响云不会向用户公开ZooKeeper配置。