[INFO]... Socket error occurred: ip/ip:2181: Connection timed out: no further information 1. 进入服务器端查看,三台主机均正常连接2181端口,启动成功。但是服务器无法连接到客户端,问题可能出在: 首先,我发现起床懵了没记得开虚拟机并开启zk集群(好想打自己。。)原因2,重新开启后仍然连不上,然后发现是...
已经明确提醒2181端口无法访问了。 定位问题的日志应该是这一行: Socket error occurred: /172.16.0....
2020-07-03 18:39:49,114 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1244] - Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: No route to host 2020-07-03 18:39:50,216 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):Clie...
在启动zk客户端连接server时报错: 2019-03-30 23:06:24,915 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1235] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused2019-03-30 23:06:26,017 [myid:localhost:2181] - INFO [main-SendThread(loca...
shell [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1261] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused 链接到server shell bin/zkCli.sh -server 127.0.0.1:2182 查看节点 shell [zk: 127.0.0.1:2182(CONNECTED) 0] ls / [cluster, zookeeper] [zk: 127.0.0.1:2182(...
(localhost:2181):ClientCnxnSocketNIO@287] - Unable to open socket to localhost/0:0:0:0:0:0:0:1:21812020-07-0318:39:48,011[myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1244] - Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: No route ...
注意此处zk_cluster_zoo-net的格式为{project_name}_{network_name},project_name默认为文件夹名,network_name默认为docker-compose.yml中指定的名字。docker-compose启动集群时会为其分配专门的网络,可在docker network ls中查看。
clientCnxnSocket.updateLastSendAndHeard(); } //代码逻辑大致是 检测授权情况 发送一个授权事件,并记录时间 如果readTimeout或者connectTimeout则抛出异常。 if (state.isConnected()) { // determine whether we need to send an AuthFailed event.
() * ZSYSTEMERROR -- a system (OS) error occurred; it's worth checking errno to get details */ #ifdef WIN32 ZOOAPI int zookeeper_interest(zhandle_t *zh, SOCKET *fd, int *interest, struct timeval *tv); #else ZOOAPI int zookeeper_interest(zhandle_t *zh, int *fd, int *interest...
从上面的代码看到setName这个方法,作用是修改线程名称的,其中调用了addr.getHostName(),罪魁祸首就是这个!!! java.net.InetSocketAddress#getHostName,作用是获取主机名称,如果在初始化这个对象的时候,传入的hostname是一个