Connection refused Will not attempt to authenticate using SASL
2016-02-25 05:31
381 查看
#描述:
启动 start-hbase.sh 或者 JAVA 代码连接hbase时会出现 SASL 问题
# 错误信息:
WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
2013-11-12 23:28:31,676 INFO org.apache.hadoop.hbase.util.RetryCounter: Sleeping 8000ms before retry #3...
2013-11-12 23:28:31,676 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave002/172.25.60.202:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
#可能原因:
1. hbase的用的ip地址,而zookeeper(含内置的)解析后只返回 域名 ,缺乏一个DNS机制
详见 http://www.iteye.com/topic/1132950
2. hbase的data文件的地址写错
#可能的改正,已验证:
1. 注意 分隔符 ///
hbase-site.xml 中的 hbase.rootdir 配置 :
<property>
<name>hbase.rootdir</name>
<value>file:///D:/data/HbaseData</value>
</property>
2. 域名修改
发送请求端的 hosts文件,接受请求端的hosts文件 , hbase里的hbase.zookeeper.quorum 的值必须完全一致
启动 start-hbase.sh 或者 JAVA 代码连接hbase时会出现 SASL 问题
# 错误信息:
WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
2013-11-12 23:28:31,676 INFO org.apache.hadoop.hbase.util.RetryCounter: Sleeping 8000ms before retry #3...
2013-11-12 23:28:31,676 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server slave002/172.25.60.202:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
#可能原因:
1. hbase的用的ip地址,而zookeeper(含内置的)解析后只返回 域名 ,缺乏一个DNS机制
详见 http://www.iteye.com/topic/1132950
2. hbase的data文件的地址写错
#可能的改正,已验证:
1. 注意 分隔符 ///
hbase-site.xml 中的 hbase.rootdir 配置 :
<property>
<name>hbase.rootdir</name>
<value>file:///D:/data/HbaseData</value>
</property>
2. 域名修改
发送请求端的 hosts文件,接受请求端的hosts文件 , hbase里的hbase.zookeeper.quorum 的值必须完全一致
相关文章推荐
- table column sum
- DE24 Introduction to First-order Systems of ODEs
- DE23 Use with Impulse Inputs
- DE22 Using Laplace Transform to Solve ODEs with Discontinuous Inputs
- DE21 Convolution Formula
- 搭建 AngularJS+Ionic+Cordova 开发环境并运行一个demo
- 【CSS3】伸缩布局
- foreach 是传入参数是 Set<Long[]>时,数据循环都是同样数据的问题
- eclipse 连接 habse 问题汇总
- [leetcode] 273. Integer to English Words 解题报告
- 文章标题
- 论clone深层复制和浅层复制
- 【CSS3】盒子模型
- Hashtable之哈希表一
- jquery中各个事件执行顺序如下:
- IOS Apps 开发(Swift)(3)——Build a Basic UI(2)
- 【CSS3】跨列设置column-span
- 我与小娜(21):引力波振幅是什么?
- 如何使用pyQT做pythonGUI界面?
- Java练笔:一个类作为另一个类的参数调用。顺带训练数据在栈和堆的走向。思考若用C++写,delete应该怎么写