zookeeper集群某个follower启动失败

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yo8237233/article/details/84830006
配置完成zookeeper集群,发现有一个节点,进程正常但是状态异常

[img]http://dl2.iteye.com/upload/attachment/0121/8256/5d31e28b-19b6-3638-aa19-337d43671f1a.jpg[/img]


查看日志一开始进入歧途了,查看的是这个目录

[img]http://dl2.iteye.com/upload/attachment/0121/8259/fb258857-59d5-33c7-9c13-73ad1a762116.png[/img]

其实应该查看这个目录的日志

[img]http://dl2.iteye.com/upload/attachment/0121/8255/037cc972-61ef-3662-8677-b30499522868.png[/img]

失败日志:

[img]http://dl2.iteye.com/upload/attachment/0121/8263/383f6ae7-f13c-33ec-a690-e609cc6d2e3f.jpg[/img]

很明显,没有权限,更改权限,启动成功

[img]http://dl2.iteye.com/upload/attachment/0121/8261/71d66b00-c337-35a4-ae24-c76423b98177.jpg[/img]
展开阅读全文

zookeeper下,两个name node都是follower

10-24

[size=14px]今天在配ha时,用到了zookeeper,但是配完后,zkfc始终无法启动,两个name node都是follower,没有一个是leader,求大神们指教[/size]rn这是我进行: hdfs zkfc -formatZK 后,输出内容:rn15/10/24 05:47:48 INFO zookeeper.ZooKeeper: Client environment:user.home=/rootrn15/10/24 05:47:48 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/hadoop/zookeeper/datarn15/10/24 05:47:48 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=nameNode:2181,nameNodeQJM:2181,dataNode1:2181,dataNode2:2181 sessionTimeout=5000 watcher=org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef@2adf16cdrn15/10/24 05:47:49 INFO zookeeper.ClientCnxn: Opening socket connection to server dataNode2/192.168.28.102:2181. Will not attempt to authenticate using SASL (unknown error)rn15/10/24 05:47:49 INFO zookeeper.ClientCnxn: Socket connection established to dataNode2/192.168.28.102:2181, initiating sessionrn15/10/24 05:47:49 INFO zookeeper.ClientCnxn: Session establishment complete on server dataNode2/192.168.28.102:2181, sessionid = 0x35099c35daf0001, negotiated timeout = 5000rn===============================================rnThe configured parent znode /hadoop-ha/cluster1 already exists.rnAre you sure you want to clear all failover information fromrnZooKeeper?rnWARNING: Before proceeding, ensure that all HDFS services andrnfailover controllers are stopped!rn===============================================rn15/10/24 05:47:49 INFO ha.ActiveStandbyElector: Session connected.rnProceed formatting /hadoop-ha/cluster1? (Y or N) rn15/10/24 05:48:16 INFO ha.ActiveStandbyElector: Recursively deleting /hadoop-ha/cluster1 from ZK...rn15/10/24 05:48:16 INFO ha.ActiveStandbyElector: Successfully deleted /hadoop-ha/cluster1 from ZK.rn15/10/24 05:48:16 INFO ha.ActiveStandbyElector: Successfully created /hadoop-ha/cluster1 in ZK.rn15/10/24 05:48:16 INFO zookeeper.ClientCnxn: EventThread shut downrn15/10/24 05:48:16 INFO zookeeper.ZooKeeper: Session: 0x35099c35daf0001 closedrnrn然后我 start-dfs.sh,结果是:两个NameNode都是standby,两个都是follower。求大神给思路rnrn 论坛

没有更多推荐了,返回首页