为什么连接HBase报错:Will not attempt to authenticate using SASL (unknown error)?

问题现象
访问CloudTable的HBase连接不上,出现如下所示的错误信息:

Opening socket connection to server 192.168.0.107/192.168.0.107:2181. Will not attempt to authenticate using SASL (unknown error)

原因分析
出现该问题的可能原因为:

网络访问不通。
由于CloudTable的链接地址是内网地址,不是公网地址,不能在公网环境直接连接CloudTable。您可以在客户端主机上ping一下CloudTable的ZK链接地址,如果无法ping通,说明网络不通。

问题:

在HBase机群搭建完成后,通过jdbc连接hbase,在连接zookeeper阶段出现Opening socket connection to server :2181. Will not attempt to authenticate using SASL (unknown error) hbase错误。

解决方案:

我的问题是由机群中的版本和eclipse中引用的zookeeper版本不一致所致。

猜你喜欢

转载自blog.csdn.net/weixin_43214644/article/details/125713519