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
Hi I've just ran docker compose the file in the example (1 zk and 1 kafka). But I got the error show up that kafka cannot connect the zookeeper. I don't change anything the yaml file.
Heres the error logs on docker compose:
kafka1 | [2024-07-19 16:33:21,883] ERROR Unable to resolve address: zoo1:2181 (org.apache.zookeeper.client.StaticHostProvider)
kafka1 | java.net.UnknownHostException: zoo1: Name or service not known
kafka1 | at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
kafka1 | at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
kafka1 | at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1534)
kafka1 | at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
kafka1 | at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1524)
kafka1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1382)
kafka1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
kafka1 | at org.apache.zookeeper.client.StaticHostProvider$1.getAllByName(StaticHostProvider.java:88)
kafka1 | at org.apache.zookeeper.client.StaticHostProvider.resolve(StaticHostProvider.java:141)
kafka1 | at org.apache.zookeeper.client.StaticHostProvider.next(StaticHostProvider.java:368)
kafka1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1207)
kafka1 | [2024-07-19 16:33:21,884] WARN Session 0x0 for sever zoo1:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException. (org.apache.zookeeper.ClientCnxn)
kafka1 | java.lang.IllegalArgumentException: Unable to canonicalize address zoo1:2181 because it's not resolvable
kafka1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:78)
kafka1 | at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:41)
kafka1 | at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1161)
kafka1 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1210)
Hi I've just ran docker compose the file in the example (1 zk and 1 kafka). But I got the error show up that kafka cannot connect the zookeeper. I don't change anything the yaml file.
Heres the error logs on docker compose:
Operating System: WSL2 Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: