1. 2014-07-21 17:24:36,310 WARN [main-SendThread(db99:2222)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected erro
r, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2014-07-21 17:24:36,417 INFO [main-SendThread(db98:2222)] zookeeper.ClientCnxn: Opening socket connection to server db98/192
.168.8.98:2222. Will not attempt to authenticate using SASL (unknown error)
2014-07-21 17:24:36,418 WARN [main-SendThread(db98:2222)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected erro
r, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
解决办法:报错的原因是客户端通过2222端口连接不上。
这里要求zookeeper中zoo.cfg 中配置的端口号,与hbase中hbase-site.xml客户端配置一致。都为2181端口。
这个出错