Connection refused Will not attempt to authenticate using SASL
来源:互联网 发布:php 业务逻辑层 编辑:程序博客网 时间:2024/06/06 01:34
#描述:
启动 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-site.xml 中的 hbase.rootdir 配置 :
<property>
<name>hbase.rootdir</name>
<value>file:///D:/data/HbaseData</value>
</property>
启动 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 的值必须完全一致
0 0
- Connection refused Will not attempt to authenticate using SASL
- hbase windowns 下, Will not attempt to authenticate using SASL (无法定位登录配置)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- zookeeper的Will not attempt to authenticate using SASL (无法定位登录配置)
- Will not attempt to authenticate using SASL (java.lang.SecurityException: 无法定位登录配置)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Dubbo zookeeper:Will not attempt to authenticate using SASL (unknown error)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)
- disconf 报错 Will not attempt to authenticate using SASL (unknown error)
- dubbo+zookeeper框架出现Will not attempt to authenticate using SASL (unknown error)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Eclipse下调试HBase程序报“Will not attempt to authenticate using SASL (java.lang.SecurityException : 无法定位登”
- Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate
- QQ企业邮箱使用Java代码发送失败,错误DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NT
- connection to XXXX refused
- Connection to http:// refused
- An attempt was made to authenticate the locked user "tomcat"
- 【CSS3】伸缩布局
- DE21 Convolution Formula
- DE22 Using Laplace Transform to Solve ODEs with Discontinuous Inputs
- DE23 Use with Impulse Inputs
- DE24 Introduction to First-order Systems of ODEs
- Connection refused Will not attempt to authenticate using SASL
- Android 文件的读写(内置存储卡)
- Hbase 基本操作
- 单点登录cas常见问题(十一) - 怎么搭建oauth服务器?
- CALayer2-创建新的层
- 利用layer的mask属性实现逐渐揭示的动画效果,layermask
- 文字渐变效果:图层中的mask属性
- ImportError: No module named persisted.styles 问题解决
- python 警告:simplify chained comparison