zookeeper意外异常导致袜子仍然打开时关闭

时间:2016-04-12 03:37:21

标签: hadoop apache-zookeeper yarn cloudera

我在Cloudera Hadoop 2.0群集中遇到了一些主要问题,这与一天中多次发生的zookeeper上的以下错误相吻合。

我无法找到原因。

感谢任何帮助。

2016-04-11 14:48:30,872 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:48:49,584 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:49:07,239 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:49:25,291 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:49:42,779 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:50:00,613 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:50:17,976 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:50:35,957 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open 2016-04-11 14:50:54,676 ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open

1 个答案:

答案 0 :(得分:1)

原来是2层问题:

上述错误发生在领导人选举持续太长时间。

领导人选举花费太长时间的原因是3个zookeeper服务器中的一个服务器上的数据损坏。

一旦来自/ var / lib / zookeeper的数据文件被炸毁并且zookeeper重新启动,领导者选举就成功了,并且转而停止了上述问题。