解决客户端通过zookeeper连接到hbase时连接过多的问题
2014-12-26 16:40
260 查看
原因:客户端程序通过zookeeper访问hbase的连接数超过设置的默认链接数(默认数是30),连接数不够用会导致后续的连接连接不上去。
解决办法:设置hbase-site.xml配置文件,添加如下属性
<property>
<name>hbase.zookeeper.property.maxClientCnxns</name>
<value>300</value>
<description>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.
</description>
</property>
将最大连接数我这设置成了300,后来发现仍然提示同样的问题,最大连接数并没有起作用,根据属性提示,直接修改zoo.cfg配置文件
添加:maxClientCnxns=300
重启下zookeeper,hbase,重新测试,问题解决。
文章转自:http://blog.csdn.net/chlaws/article/details/7101020
解决办法:设置hbase-site.xml配置文件,添加如下属性
<property>
<name>hbase.zookeeper.property.maxClientCnxns</name>
<value>300</value>
<description>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.
</description>
</property>
将最大连接数我这设置成了300,后来发现仍然提示同样的问题,最大连接数并没有起作用,根据属性提示,直接修改zoo.cfg配置文件
添加:maxClientCnxns=300
重启下zookeeper,hbase,重新测试,问题解决。
文章转自:http://blog.csdn.net/chlaws/article/details/7101020
相关文章推荐
- 解决客户端通过zookeeper连接到hbase时连接过多的问题
- 解决客户端通过zookeeper连接到hbase时连接过多的问题
- asp.net 连接oracle时 出现客户端连接问题的解决办法
- SQL Server无法通过IP地址注册服务器及连接问题的解决
- MySQL 客户端无法连接 mysqld-nt 问题的解决
- 通过mongodb客户端samus代码研究解决问题
- SAP的程序用客户端连接正常,用C#连接死活连不上问题的解决
- 商贸通服装鞋帽版客户端无法连接服务器的问题(自己遇到的,已解决)
- 解决不能通过mysql.sock连接MySQL问题
- 解决VS2005 远程工具无法通过同步软件连接S5pv210 样机的问题
- 如何解决远程连接用户过多的问题
- 短连接过多时,TIME_WAIT问题解决
- SAP的程序用客户端连接正常,用C#连接死活连不上问题的解决
- 解决小问题--VC2008通过ADO连接ACCESS
- 解决:[不安装oracle客户端,也要连接oracle服务器]这个问题过程中的经验。
- 客户端通过ISA代理匿名访问FTP服务器问题解决
- 用oralce连接.net客户端出现问题:“数据连接不成功,请检查该数据库是否已启动尝试加载oracle客户端时引发BadImageFormatException.如果在安装32位Oracle客户端组件的情况下以64位模式运行,”的解决办法
- 解决不能通过mysql.sock连接MySQL问题
- 解决小问题--VC2008通过ADO连接ACCESS (转)