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.
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
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:
8088:8088
39999:39999 restart: always volumes:
/root/.kafka:/etc/ksql/secrets environment:
KSQL_LISTENERS=http://0.0.0.0:8088
KSQL_SSL_KEYSTORE_LOCATION=/etc/ksql/secrets/kafka.server.keystore.jks
KSQL_SSL_KEYSTORE_PASSWORD=xxxxxx
KSQL_SSL_KEY_PASSWORD=xxxxxx
KSQL_SSL_CLIENT_AUTH=true
KSQL_SSL_TRUSTSTORE_LOCATION=/etc/ksql/secrets/kafka.server.truststore.jks
KSQL_SSL_TRUSTSTORE_PASSWORD=xxxxxx
KSQL_JMX_PORT=39999
KSQL_JAVAHOME=/usr/bin/java
KSQL_BOOTSTRAP_SERVERS=10.xxx.yy.zz:9093,10.xxx.yy.zz:9093
KSQL_HEAP_OPTS=-Xmx8G -Xms8G
KSQL_STREAMS_PRODUCER_DELIVERY_TIMEOUT_MS=2147483647
KSQL_STREAMS_STATE_DIR=/etc/ksql/
KSQL_INTERNAL_TOPIC_REPLICAS=3
KSQL_STREAMS_REPLICATION_FACTOR=3
KSQL_STREAMS_NUM_STANDBY_REPLICAS=1
KSQL_CLASSPATH=/usr/share/java/ksql-server/*:/usr/share/java/cp-base-new
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