`

关于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-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的副本策略有助于保证数据可靠性。定期...

    pb双击打开错误方式的修复

    当你在尝试双击打开PB项目时遇到错误,这可能是由于多种原因引起的,包括注册表问题、软件版本不兼容、环境变量设置不当或者安装损坏等。下面将详细介绍如何修复PB双击打开错误的问题。 首先,我们要关注的是注册表...

    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 ...

    abaqus焊接仿真插件

    ABAQUS是一款强大的有限元分析软件,广泛应用于结构力学、热传导、流体动力学等领域的复杂工程问题。在焊接工艺仿真领域,ABAQUS提供了一种高效的解决方案,即ABAQUS焊接工艺插件(AWI,Abaqus Welding Interface)...

    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.

    An attempt to read, understand, and implement the AUTOSAR SWS Po

    An attempt to read, understand, and implement the AUTOSAR SWS Port Driver according to the specification in a demo full-layered AUTOSAR a…

    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 ...

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

    总结来说,遇到`Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE`错误时,首先要理解错误的根源,然后选择合适的安全策略来解决问题。尽量避免禁用证书验证,而应优先考虑修复证书配置或添加自定义CA。通过这种方式,可以在...

    electron-builder打包过程中报错所需的文件

    Get "https://github.com/electronXXXX": dial tcp XXXX: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection ...

    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 ...

    orcad15.7 破解方法

    orcad15.7 安装问题解决:An application has made an attempt to load the C runtime library incorrectly. Please ccontact the application"s support team for more information!

    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 ...

    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...

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

    《mksysb报错解决方法的详细指南》 在软件开发过程中,系统备份是确保数据安全和系统稳定性的重要步骤。然而,有时在执行mksysb命令进行系统备份时,可能会遇到各种报错,这可能对系统的正常运行造成影响。本文将...

    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 ...

    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 ...

Global site tag (gtag.js) - Google Analytics