控制台的打印信息频繁出现以下一句话:
Opening socket connection to server peer1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
出现这个的问题纯属是 hbase-site.xml 的配置错误,hbase-site.xml 里面可以zk的地址,默认是localhost,我犯的错误就是没有配置zk地址,导致控制台一直打印连接 127.0.0.1:2181 被拒绝。
解决方法:
修改 hbase 的 conf 下的 hbase-site.xml ,增加配置
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.75.128:2181</value>
</property>
然后重启 hbase 即可
参考博客:https://blog.youkuaiyun.com/qq_33283652/article/details/85236322
感谢大佬!