-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve address: zoo1:2181 #62
Comments
cat /etc/hosts 127.0.0.1 kafka1 |
@kdrakon @polomarcus @devshawn my env : docker-compose version 1.25.4, build 8d51620a |
same problem |
Same for me |
Solved for me by replacing zoo1:2181 with zookeeper:2181 |
Same problem here:
|
I have the sample problem. Two years ago (when I took the course) it worked fine. I tried with that version (I got that docker file in my hd) and tried the new version but none of them worked ... :( |
I added the option below and it works.(--user 1000) ...
volumes:
- ./zk-single-kafka-single/zoo1/data:/data
- ./zk-single-kafka-single/zoo1/datalog:/datalog --user 1000 |
@ksh901016 thanks for finding this. How did you find out about user 1000? |
@simplesteph |
Just in case, my mac it's not M1. The docker-compose file worked fine about 1 year ago and when I needed 1 or 2 weeks ago it didn't work anymore ... so hardware is exactly the same ... very weird ... maybe could it be related to s.o. updates? |
@ovats Then I guess it's not related to the m1 MacBook. T.T |
this seems linked to confluentinc/common-docker#117 |
Can you all please test the docker-compose file on master and let me know if you're still having issues? @ksh901016 @ovats @robsonpeixoto @ltanme @cinuor @krysalead |
Is working! Thanks ❯ docker-compose -f zk-single-kafka-multiple.yml up -d
[+] Running 4/4
⠿ Container zoo1 Started 0.9s
⠿ Container kafka-stack-docker-compose-kafka3-1 Started 1.8s
⠿ Container kafka-stack-docker-compose-kafka1-1 Started 1.9s
⠿ Container kafka-stack-docker-compose-kafka2-1 Started 1.8s
❯ kcat -L -b localhost:9092
Metadata for all topics (from broker -1: localhost:9092/bootstrap):
3 brokers:
broker 2 at 127.0.0.1:9093
broker 3 at 127.0.0.1:9094 (controller)
broker 1 at 127.0.0.1:9092
0 topics: |
[main] ERROR io.confluent.admin.utils.ClusterStatus - Timed out waiting for connection to Zookeeper server [bldr-cp-zookeeper-headless:2181]. I get above error in kubernetes cluster. Any suggestion ? |
[main-SendThread(zoo1:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server zoo1:2181, unexpected error, closing socket connection and attempting reconnect
kafka1_1 | java.lang.IllegalArgumentException: Unable to canonicalize address zoo1:2181 because it's not resolvable
kafka1_1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:66)
kafka1_1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:39)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1087)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1139)
kafka1_1 | [main-SendThread(zoo1:2181)] ERROR org.apache.zookeeper.client.StaticHostProvider - Unable to resolve address: zoo1:2181
kafka1_1 | java.net.UnknownHostException: zoo1
kafka1_1 | at java.net.InetAddress.getAllByName0(InetAddress.java:1281)
kafka1_1 | at java.net.InetAddress.getAllByName(InetAddress.java:1193)
kafka1_1 | at java.net.InetAddress.getAllByName(InetAddress.java:1127)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider$1.getAllByName(StaticHostProvider.java:92)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider.resolve(StaticHostProvider.java:147)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider.next(StaticHostProvider.java:375)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1137)
kafka1_1 | [main-SendThread(zoo1:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server zoo1:2181, unexpected error, closing socket connection and attempting reconnect
kafka1_1 | java.lang.IllegalArgumentException: Unable to canonicalize address zoo1:2181 because it's not resolvable
kafka1_1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:66)
kafka1_1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:39)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1087)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1139)
kafka1_1 | [main] ERROR io.confluent.admin.utils.ClusterStatus - Timed out waiting for connection to Zookeeper server [zoo1:2181].
kafka1_1 | [main-SendThread(zoo1:2181)] ERROR org.apache.zookeeper.client.StaticHostProvider - Unable to resolve address: zoo1:2181
kafka1_1 | java.net.UnknownHostException: zoo1
kafka1_1 | at java.net.InetAddress.getAllByName0(InetAddress.java:1281)
kafka1_1 | at java.net.InetAddress.getAllByName(InetAddress.java:1193)
kafka1_1 | at java.net.InetAddress.getAllByName(InetAddress.java:1127)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider$1.getAllByName(StaticHostProvider.java:92)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider.resolve(StaticHostProvider.java:147)
kafka1_1 | at org.apache.zookeeper.client.StaticHostProvider.next(StaticHostProvider.java:375)
kafka1_1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1137)
kafka1_1 | [main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x0 closed
kafka1_1 | [main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x0
The text was updated successfully, but these errors were encountered: