0

我正在尝试将 kafka 休息代理连接到融合云。

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的连接?

4

1 回答 1

1

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

请参阅此处将 rest-proxy 连接到 kafka 云的说明

于 2019-11-04T06:18:41.227 回答