Max Ploter
Max Ploter

Reputation: 469

Connecting REST Proxy to Confluent Cloud trying to connect to zookeeper

I'm trying to connect kafka rest proxy to confluent cloud.

kafka-rest-start ccloud-kafka-rest.properties

Here is my file with 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="***";

After I run kafka-rest-start it tries connect to zookeeper (zookeeper.connect = localhost:2181).

ERROR Server died unexpectedly: (io.confluent.kafkarest.KafkaRestMain:63) org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server 'localhost:2181' with timeout of 30000 ms

Also I tried to set zookeeper host empty, It didn't help. How to turn off connecting to zookeeper?

Upvotes: 0

Views: 485

Answers (1)

asolanki
asolanki

Reputation: 1373

The default value for the zookeeper.connect property is localhost:2181. See here You need to populate it with the address of the zookeeper of the confluent cloud.

See the instructions for connecting a rest-proxy to kafka cloud here

Upvotes: 1

Related Questions