大数据: zookeeper连接数导致kafka storm不能正常工作
(2014-08-21 10:09:30)
					
											标签:
																				
                            股票 | 
					
问题描述:
kafka list-topic报错:
[2014-08-21 10:08:22,728] WARN Session 0x0 for server
AY1405161104217929f5Z/10.162.219.53:2181, unexpected error, closing
socket connection and attempting reconnect
(org.apache.zookeeper.ClientCnxn)
java.io.IOException: Connection reset by peer
storm tail -1000
worker-6702.log 日志报错如下: 
2014-08-21 10:08:57 b.s.d.executor
[ERROR] 
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for
/brokers/topics/shakatopic/partitions
Caused by: java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for
/brokers/topics/shakatopic/partitions
Caused by: java.lang.RuntimeException:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for
/brokers/topics/shakatopic/partitions
Caused by:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for
/brokers/topics/shakatopic/partitions
zookeeper的zookeeper.out 日志: 
2014-08-21 10:15:34,446 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:35,401 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:36,029 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:38,207 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:38,932 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:40,784 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:40,820 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:43,014 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:43,742 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:45,845 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:46,104 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:47,775 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:48,215 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:50,036 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:50,110 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:52,215 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:52,422 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:54,829 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
2014-08-21 10:15:55,398 - WARN
 [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@247]
- Too many connections from /10.162.219.53 - max is 10 
解决方法:
# add by shaka
# set max client connects
maxClientCnxns=300

加载中…