-
Notifications
You must be signed in to change notification settings - Fork 703
Kafka: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) #801
Comments
I have the same issue ~ hungry for the solution :( Did you ever find? From some other thread ( https://github.com/bitnami/bitnami-docker-kafka/issues/37 ), supposedly these commands worked but I haven't tested them yet: $ docker network create app-tier |
I resolved my issue - it was due to a misconfiguration, the ip address it was trying to reach was incorrect. Could be the same for you? |
I have the same issue,we want to solve it asap.could anyone tell me the solution or what cause this problem? |
INFO Socket error occurred: localhost/127.0.0.1:2181: Connection refused (org.apache.zookeeper.ClientCnxn) |
there is similar error on this ticket, and the user seems to have resolved it by adding |
In the kafka docker run command, give the IP address of zk container Below is the sample: This will spin up zookeeper container and add it to default network. Spin up kafka as below: |
check whether you zookeeper is running on the port where your kafka instance is trying to connect zookeeper. |
The following chunk of code might help you in running zookeeper as well as kafka successfully.
@sabond9 , This should be solving the issue that you are facing |
Better to use either
|
Try what @sairameshv specified, it resolved this issue for me. |
The issue is the ZKP does not run on the localhost ie 127.0.0.1 (default network)
This should work fine, it works fine for me (on both windows and linux) |
Using the Docker 'host' network mode instead of the default 'bridge' mode might help, at least this is the working solution for my project. The 'host' network mode bypasses the IP issue by using the network stack of the Docker host directly instead of creating an isolated Docker network. As an example see: https://github.com/mwatzer/kafka-connect-transforms-json-extractor-test/blob/main/docker/kafka/docker-compose.yml |
Yes it works Thanks Buddy...... |
This worked for me. Thank you very much :) |
If you are running kafka on windows , run below command ... it will work as well . zookeeper-server-start.bat .\etc\kafka\zookeeper.properties |
|
after using the following: when running kafka image, one of the following parameters: the entire command line is: |
after deleting and restoring images, the ip has changed to |
I using docker for running kafka and zookeeper. Kafka container stopped and can't connect to zookeeper. Kafka showed error
I'm using docker commands for running kafka and zookeeper
How can I fix it?
There is the full kafka log
The text was updated successfully, but these errors were encountered: