`

关于zoonkeep链接服务端报错Will not attempt to authenticate using SASL (unknown error的问题

 
阅读更多
    今天一直报Zookeeper报错Will not attempt to authenticate using SASL 这个错误,后来网上查找了很多,终于发现是客户端的zookeeper的jar包和zookerper的服务端的版本不一致造成的。

原文如下:


   先需要说的是,这个问题出现的原因很多,报的错误与实际可能相差比较远。总结如下:
一、调用端和服务器端版本不统一造成的!
二、这个问题的出现,会伴随一个非常奇怪的现象。在master所在的pc上启动start-all时,内容提示所有的regionserver已经全部启动。但是,如果你去查看masterIP:60010时 会发现其他的regionserver并没有启动,regionserver的数量只有一台。因为已经有一台regionserver是活着的,所以 hbase还是能继续使用的,这会迷惑你。查看别的机器的日志后,你就会发现上述错误。zookeeper的定位居然定位到127.0.0.1去了,这个 不科学。最后,查阅资料才发现hbase.zookeeper.quorum这个属性设置时,默认本机即为zookeeper服务器(单机使用)。这就很 简单了,只需要增加这个属性就可以了。

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


同时,也发现如果/etc/hosts设置错误也会发生类似问题。/etc/hosts中,localhost和本机PC名都需要为127.0.0.1,因为本机PC名默认是127.0.1.1。

三、hbase的参数设置问题 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>

分享到:
评论

相关推荐

    Kafka 使用

    简介 Zookeeper搭建 bin/zkServer.sh start ... Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2020-02-19 14:58:13,672] WARN Session 0x0 for serve

    zookeeper构建集群实用教程

    本教程清晰地介绍的zookeeper构建集群的完整过程,可以在本地环境下安装和拷贝出多个VMware虚拟机,然后通过zookeeper将多个VMware虚拟机构建成一个集群

    zookeeper-3.4.14.jar

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

    hadoop运维经验分享

    一旦发现问题,快速定位和解决问题是运维的关键。熟练掌握日志分析技巧对于诊断问题至关重要。 4. **数据管理**:数据生命周期管理涉及数据的存储、备份和恢复策略。理解HDFS的副本策略有助于保证数据可靠性。定期...

    Programmable Logic Controllers A Practical Approach TO IEC 61131-3 Using CoDeSys

    This development was the natural result of the attempt by the producers to make themselves stand out among increasing competition by developing the most user friendlylanguages and tools.

    VB编程资源大全(英文源码 网络)

    You can send messages with a client/server type setup.&lt;END&gt;&lt;br&gt;57 , al40.zip Apparently, if you use AOL to connect to the Internet and you do not touch it for 45 minutes it will timeout and drop ...

    BURNINTEST--硬件检测工具

    This will error faulty NICs that are not detected by the BurnInTest auto NIC detection mechanism. - Minor change to the 2D memory test when run with the 3D test (multiple large windows) and the ...

    POSIX Multithread Programming-- PThreads Primer

    This book does not attempt to explain the usage of the Win32 or OS/2 APIs. It does contrast them to the POSIX API in order to give the POSIX programmer a feeling for what kind of porting issues might ...

    Head First Go 1st Edition

    This book will not only teach developers basic language features, it will get them comfortable consulting error output, documentation, and search engines to find solutions to problems. It will teach ...

    node.js请求HTTPS报错:UNABLE_TO_VERIFY_LEAF_SIGNATURE\的解决方法

    最近在工作中遇到一个问题,node.js请求HTTPS时报错:Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE,通过查找网上的一些资料找到了解决方法,现在总结下分享给大家,有需要的朋友们可以参考借鉴,下面来一起看看吧。

    STK 与 matlab 连接报错

    关于stk与matlab的版本对应关系以及一般正确的连接方式请看谈谈AGI STK跟matlab的互联问题。通过看这篇文章,我重新下载了matlab和stk的版本,使用了STK11和matlab2015b,在STK端查看edit-preference-matlab都没有...

    微软内部资料-SQL性能优化3

    Key range locks are similar to row locks on index keys (whether clustered or not). The locks are placed on individual keys rather than at the node level. The hash value consists of all the key ...

    HP pc server ML370 硬件更换加错误定位

    WARNING: To reduce the risk of electric shock, do not disassemble the power supply or attempt to repair it. Replace it only with the specified spare part. CAUTION: Do not attempt to remove and ...

    abaqus焊接仿真插件

    abaqus焊接工艺仿真插件,可以模拟激光焊、氩弧焊、搅拌摩擦焊等多种焊接工艺及多遍焊接过程,操作简单,附带帮助文档

    firefox setup stub 41.0.1

    These people volunteer their time, and do not attempt to make money using advertising or paid products. This community is a great asset to Firefox, often making improvements and add-ons before rivals...

    Impactor_0.9.51

    If your device is not detected, use Impactor's USB Driver Scan feature to attempt to automatically construct and install a driver for your device. You do not need the Android SDK installed to use ...

    Introduction.To.Algorithms,.Second.Edition

    not address error-handling and other software-engineering issues that require specific assumptions about your programming environment. We attempt to present each algorithm simply and directly without ...

    VclZip pro v3.10.1

    Using a wildcard in pathname added to FilesList did not work. Using '*.*' as a wildcard in files added to FilesList now is the same as using '*'. VCLZip will now check for CancelTheOperation during ...

    mksysb报错解决方法[归纳].pdf

    mksysb报错解决方法[归纳].pdf

    eclipse常见报错

    4. SSH 架构中 Illegal attempt to associate a collection with two open sessions 问题 。 解决方法:使用 Hibernate 的 merge 方法代替 save、update 等方法。merge 方法可以把对象转变为托管状态的对象,而 ...

Global site tag (gtag.js) - Google Analytics