ARN [main-SendThread(db99:2222)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected erro

本文转自:http://blog.csdn.net/wulantian/article/details/38112305,略修改。


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端口。


注:确认zookeeper是否已正确安装、启动。我的问题是因为zookeeper未安装,hadoop+hbase发布后,还需要发布zookeeper。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值