栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

WARN zookeeper.ZKUtil: hconnection-0x6a0e5d320x0, quorum=lylg102:2181 baseZNode=/hbase Unable t

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

WARN zookeeper.ZKUtil: hconnection-0x6a0e5d320x0, quorum=lylg102:2181 baseZNode=/hbase Unable t

报错详情

22/07/08 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 22/07/08 WARN zookeeper.ZKUtil: hconnection-0x6a0e5d320x0, quorum=lylg102:2181,lylg103:2181,lylg104:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

经过查找,这是因为客户端通过zookeeper连接到hbase时连接过多的问题

解决方案
  • 设置hbase-site.xml配置文件,添加如下属性
 


hbase.zookeeper.property.maxClientCnxns

300

Property from ZooKeeper's config zoo.cfg.

Limit on number of concurrent connections (at the socket level) that a

single client, identified by IP address, may make to a single member of

the ZooKeeper ensemble. Set high to avoid zk connection issues running

standalone and pseudo-distributed.




将最大连接数我这设置成了300,

  • 修改zoo.cfg配置文件
    添加:maxClientCnxns=300
  • 优化自己写的程序逻辑,减少连接次数

重启下zookeeper,hbase,重新测试,问题解决。

参考:https://blog.csdn.net/wangshuminjava/article/details/84581723

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1007959.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号