kafka-manager-docker
kafka-manager-docker copied to clipboard
kafka-manager not working
after any changes in web interface kafka-manager goes into loop with this: kafka-manager_1 | [info] o.a.z.ClientCnxn - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) kafka-manager_1 | [warn] o.a.z.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect kafka-manager_1 | java.net.ConnectException: Connection refused
Tried running manager separately and with fixed host ip still the same, seems it can't connect to zookeeper.
Same problem!
Hi,
could you send/pastebin/gist me please:
- information how zookeeper(s) is (are) set up
- if previously run kafka-manager on this cluster
-
docker inspect <containerid>
output
thanks
Got it working running kafka 0.8.2.1, errors happens on any of 0.9.x versions. Ran from blank slate - https://gist.github.com/EdgarsK/f59eda366baf8b636bff238faea62c13#file-gistfile1-txt
@EdgarsK, you need to add your zookeeper host properly.
I failed doing this earlier(yielding the error you've mentioned) because I was configuring cluster with wrong zookeeper host - I thought it should be localhost:2141
(because it is on my local machine, but docker is doing another network in your local machine as far as I know), but if you notice your docker-compose.yml you might see that network that docker creates is actually zookeeper:2141
so you need to configure cluster with zookeeper:2141
instead of localhost:2141
.
This thing resolved the issue for me, hope it helps in future as well.
Regards, YV