【发布时间】:2020-02-29 09:46:57
【问题描述】:
我正在尝试将 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?
【问题讨论】:
-
也请分享服务器配置
标签: apache-kafka apache-zookeeper confluent-platform kafka-rest