一、zookeeper超出最大连接限制:ambari server检测到critical错误, zookeeper server on ep-bd01:2181 连接被积极拒绝,翻看主机上zookeeper的日志
tail -n200 zookeeper-zookeeper-server-ep-bd01.out,发现都是如下错误:
2018-08-20 16:59:20,603 [myid:3] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@193] - Too many connections from /192.168.58.11 - max is 60 2018-08-20 16:59:20,619 [myid:3] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@193] - Too many connections from /192.168.58.11 - max is 60
搜索后,在ambari界面上添加如下参数[maxClientCnxns],问题解决: