About the zoonkeep link server error Will not attempt to authenticate using SASL (unknown error

    Today, I have been reporting the error Will not attempt to authenticate using SASL in Zookeeper. Later, I searched a lot on the Internet and finally found that it was caused by the inconsistency of the versions of the zookeeper jar package of the client and the server of zookerper.

The original text is as follows:


   The first thing I need to say is that there are many reasons for this problem, and the reported error may be far from the actual one. The summary is as follows:
1. It is caused by the inconsistent version of the calling end and the server end!
Second, the emergence of this problem will be accompanied by a very strange phenomenon. When start-all is started on the pc where the master is located, the content prompts that all regionservers have been started. However, if you go to check masterIP: 60010, you will find that other regionservers are not started, and the number of regionservers is only one. Because there is already a regionserver alive, hbase can still be used, which will confuse you. After looking at the logs of other machines, you will find the above error. The positioning of zookeeper is actually located at 127.0.0.1, which is unscientific. Finally, after consulting the data, I found that when the property hbase.zookeeper.quorum is set, the default local machine is the zookeeper server (stand-alone use). This is very simple, just need to increase this property.

     
  <property>
                <name>hbase.zookeeper.quorum</name>
                <value>10.82.58.213</value>
        </property>


At the same time, it is also found that similar problems can occur if /etc/hosts is set incorrectly. In /etc/hosts, both localhost and the local PC name need to be 127.0.0.1, because the local PC name is 127.0.1.1 by default.

Three, hbase parameter setting problem hbase-site.xml
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/hadoop/zookeeper</value>
<description>Property from ZooKeeper's config zoo.cfg.
The directory where the snapshot is stored.
</description>
</property>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327060262&siteId=291194637
Recommended