报错信息(主要部分)
2020-03-31 15:38:26,551 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server hadoop11/192.168.100.211:2181. Will not attempt to authenticate using SASL (unknown error)
2020-03-31 15:38:47,554 WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2020-03-31 15:38:47,661 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server hadoop01/192.168.100.200:2181. Will not attempt to authenticate using SASL (unknown error)
2020-03-31 15:39:08,661 WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2020-03-31 15:39:08,765 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server hadoop10/192.168.100.210:2181. Will not attempt to authenticate using SASL (unknown error)
问题描述
HBase API测试过程测试代码时出现的报错信息
问题分析
Connection timed out: no further information
分析日志记录:连接超时,没有更多的信息,一看就是连接问题,代码没问题,赶紧看服务器Hadoop、Zookeeper和HBase都开了没有。
原因分析
打开虚拟机一看,脑瓜子嗡嗡的,打脸,服务没开,连个毛线呀...
解决办法
打开服务器,开启Hadoop、Zookeeper和HBase 服务。
成功结果展示
成功就完事了
本节完!
更多信息交流请加QQ:1958917311