You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used the docker-compose-swarm.yml with docker stack, but the Kafka could not connect with zookeeper.
The command that I executed docker stack deploy -c docker-compose-swarm.yml test
The error is the following:
INFO Socket error occurred: zookeeper/10.0.1.2:2181: Connection refused (org.apache.zookeeper.ClientCnxn)
INFO Opening socket connection to server zookeeper/10.0.1.2:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
I believe the problem is on the virtual IP of Zookeeper's service (KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181) which is not exactly the same as Zookeeper's IP (Zookeeper Virtual IP 10.0.1.2 and Zookeeper IP 10.0.1.3).
Please find below also the results (only the networks) of "docker inspect zookeeperId":
I'm a little bit confused. If you are using the docker-compose-swarm.yml file, why does Zookeeper have two virtual IPs? there should only be one instance.
Have you performed any diagnostics? i.e. from the kafka container telnet / netcat to the zookeeper node + port? Try connecting to the zookeeper node from an external client other than kafka? etc.
You have right that only one zookeeper instance is running, sorry if I am confused you. I have tried it again in another machine (Linux OS, not in windows as the previous attempt) and it works fine. So I believe that something I have messed up in the docker network.
I have used the docker-compose-swarm.yml with docker stack, but the Kafka could not connect with zookeeper.
The command that I executed
docker stack deploy -c docker-compose-swarm.yml test
The error is the following:
I believe the problem is on the virtual IP of Zookeeper's service (KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181) which is not exactly the same as Zookeeper's IP (Zookeeper Virtual IP 10.0.1.2 and Zookeeper IP 10.0.1.3).
Please find below also the results (only the networks) of "docker inspect zookeeperId":
Thank you in advance, any advice will be usefull.
The text was updated successfully, but these errors were encountered: