分享

构建hadoop的ha,ResourceManager和DFSZKFailoverController会挂掉,报错如下

linbowei 发表于 2016-5-16 18:02:18 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 8 21763
ATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Received a org.apache.hadoop.yarn.server.resourcemanager.RMFatalEvent of type EMBEDDED_ELECTOR_FAILED. Cause:
Received stat error from Zookeeper. code:CONNECTIONLOSS. Not retrying further znode monitoring connection errors

org.apache.hadoop.ha.ZKFailoverController: Fatal error occurred:Received stat error from Zookeeper. code:CONNECTIONLOSS. Not retrying further znode monitoring connection errors.

已有(8)人评论

跳转到指定楼层
NEOGX 发表于 2016-5-16 19:55:01
zookeeper看看是否正常运行
回复

使用道具 举报

nextuser 发表于 2016-5-16 20:01:01
zookeeper运行应该有错误日志
回复

使用道具 举报

linbowei 发表于 2016-5-17 10:12:31
NEOGX 发表于 2016-5-16 19:55
zookeeper看看是否正常运行

2016-05-17 10:09:13,030 [myid:2] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x254bc70f35e0000, likely client has closed socket
    at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230)
    at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
    at java.lang.Thread.run(Thread.java:745)

zookeeper的日志

回复

使用道具 举报

linbowei 发表于 2016-5-17 10:43:10
nextuser 发表于 2016-5-16 20:01
zookeeper运行应该有错误日志

2016-05-17 10:09:13,030 [myid:2] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x254bc70f35e0000, likely client has closed socket
    at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230)
    at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
    at java.lang.Thread.run(Thread.java:745)

zookeeper的日志

回复

使用道具 举报

NEOGX 发表于 2016-5-17 10:55:30
linbowei 发表于 2016-5-17 10:43
2016-05-17 10:09:13,030 [myid:2] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@ ...

尝试下面方法:
1.ntp是否安装,时间是否同步
2.把server.properties文件里

#host.name=localhost

的注释去掉

回复

使用道具 举报

linbowei 发表于 2016-5-17 11:16:29
NEOGX 发表于 2016-5-17 10:55
尝试下面方法:
1.ntp是否安装,时间是否同步
2.把server.properties文件里

server.properties这个文件在哪里??

回复

使用道具 举报

muyannian 发表于 2016-5-17 12:36:19
linbowei 发表于 2016-5-17 11:16
server.properties这个文件在哪里??

config/zookeeper.properties
这里面看看

hosts里面的127.0.1.0也注释掉
回复

使用道具 举报

linbowei 发表于 2016-5-17 14:06:11
muyannian 发表于 2016-5-17 12:36
config/zookeeper.properties
这里面看看

config/zookeeper.properties
zookeeper下没有这个配置文件,只有zoo.cfg;你的zookeeper是什么版本的?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条