confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 704 forks source link

KSQL not able to connect to the KAFKA cluster #809

Closed gangadhar01a closed 4 years ago

gangadhar01a commented 4 years ago

I am using the following KSQL docker configuration and provided the required parameters. Unfortunately, ksql not able to connect to the kafka cluster. Network seems to be fine between ksql and kafka cluster servers.

docker-compose.yaml version: '3' services: ksql: image: confluentinc/cp-ksql-server:5.3.0 logging: driver: "json-file" network_mode: bridge ports:

container logs: {"log":"Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.\n","stream":"stderr","time":"2019-11-12T20:32:50.612746948Z"} {"log":"[main] INFO io.confluent.admin.utils.ClusterStatus - Expected 1 brokers but found only 0. Trying to query Kafka for metadata again ...\n","stream":"stderr","time":"2019-11-12T20:32:51.613275403Z"} {"log":"[main] ERROR io.confluent.admin.utils.ClusterStatus - Expected 1 brokers but found only 0. Brokers found [].\n","stream":"stderr","time":"2019-11-12T20:32:51.613326134Z"}

docker --version Docker version 18.09.2, build 6247962

gangadhar01a commented 4 years ago

it's throwing timeout exceptions in assigning the node, not sure if there is a parameter which will increase the timeout for KSQL.