java.lang.RuntimeException: Unable to fence NameNode at hadoop1192.168.43.100:8020

java.lang.RuntimeException: Unable to fence NameNode at hadoop1192.168.43.100:8020,第1张

java.lang.RuntimeException: Unable to fence NameNode at hadoop1/192.168.43.100:8020


2021-11-23 15:13:08878警告org.apache.hadoop.ha.NodeFencer:围栏方法org.apache.hadoop.ha.SshFenceByTcpPort(null)未成功。

2021-11-23 15:13:08878错误org.apache.hadoop.ha.NodeFencer:无法通过任何配置的方法限制服务。

2021-11-23 15:13:08879警告org.apache.hadoop.ha.ActiveStandbyElector:处理选举获胜的异常

java.lang.RuntimeException:无法在hadoop1/192.168.43.100:8020上隔离NameNode

位于org.apache.hadoop.ha.ZKFailoverController.doFence(ZKFailoverController.java:538)

位于org.apache.hadoop.ha.ZKFailoverController.fenceOldActive(ZKFailoverController.java:510)

位于org.apache.hadoop.ha.ZKFailoverController.access$1100(ZKFailoverController.java:60)

位于org.apache.hadoop.ha.ZKFailoverController$ElectorCallbacks.fenceOldActive(ZKFailoverController.java:933)

位于org.apache.hadoop.ha.ActiveStandbyElector.fenceOldActive(ActiveStandbyElector.java:992)

在org.apache.hadoop.ha.ActiveStandbyElector.becomeActive(ActiveStandbyElector.java:891)

位于org.apache.hadoop.ha.ActiveStandbyElector.processResult(ActiveStandbyElector.java:476)

位于org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:610)

位于org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:508)

2021-11-23 15:13:08879 INFO org.apache.hadoop.ha.ActiveStandbyElector:尝试重新建立ZK会话

2021-11-23 15:13:08884 INFO org.apache.zookeeper.zookeeper:会话:0x1000059042已关闭

2021-11-23 15:13:09885 INFO org.apache.zookeeper.zookeeper:启动客户端连接,connectString=hadoop1:2181,hadoop2:2181,hadoop3:2181 sessionTimeout=10000 watcher=org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef@6d518a36

2021-11-23 15:13:09886 INFO org.apache.zookeeper.ClientCnxn:打开到服务器hadoop3的套接字连接/192.168.43.102:2181。不会尝试使用SASL进行身份验证(未知错误)

2021-11-23 15:13:09886 INFO org.apache.zookeeper.ClientCnxn:已建立到hadoop3/192.168.43.102:2181的套接字连接,正在启动会话

2021-11-23 15:13:09892 INFO org.apache.zookeeper.ClientCnxn:在服务器hadoop3/192.168.43.102:2181上完成会话建立,会话ID=0x300005e1505016f,协商超时=10000

2021-11-23 15:13:09892 INFO org.apache.hadoop.ha.ActiveStandbyElector:会话已连接。

2021-11-23 15:13:09892 INFO org.apache.zookeeper.ClientCnxn:EventThread为会话关闭:0x100005effe90142

2021-11-23 15:13:09896 INFO org.apache.hadoop.ha.ActiveStandbyElector:正在检查任何需要隔离的旧活动。。。

2021-11-23 15:13:09898 INFO org.apache.hadoop.ha.ActiveStandbyElector:存在旧节点:0A096D79636C757374657212036E6E311A074841444F403120D43E28D33E

2021-11-23 15:13:09900 INFO org.apache.hadoop.ha.ZKFailoverController:Should fence:NameNode位于hadoop1/192.168.43.100:8020

https://blog.csdn.net/jinxilongjxl/article/details/108416435?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link
参考网址

    
        dfs.ha.fencing.methods
        
            sshfence
            shell(/bin/true)
        
    

最后成功切换active

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5606663.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存