Hadoop名称节点无法关闭安全模式

问题描述

全部

我是Hadoop的新手。在docker中构建具有5个节点的Hadoop集群后,无法关闭namenode安全模式。 我尝试了“ ./hadoop dfsadmin -safemode离开”和“ ./hadoop dfsadmin -safemode forceExit”,两者均无效。是因为资源不足吗?谁能帮我解决这个麻烦?非常感谢! 我使用Hadoop 3.3.0

root@h01:/usr/local/hadoop/bin# ./hadoop dfsadmin -safemode forceExit
WARNING: Use of this script to execute dfsadmin is deprecated.
WARNING: Attempting to execute replacement "hdfs dfsadmin" instead.

Safe mode is OFF

root@h01:/usr/local/hadoop/bin# ./hadoop dfsadmin -report
WARNING: Use of this script to execute dfsadmin is deprecated.
WARNING: Attempting to execute replacement "hdfs dfsadmin" instead.

Safe mode is ON
Configured Capacity: 313628119040 (292.09 GB)
Present Capacity: 376197120 (358.77 MB)
DFS Remaining: 376053760 (358.63 MB)
DFS Used: 143360 (140 KB)
DFS Used%: 0.04%
Replicated Blocks:
    Under replicated blocks: 0
    Blocks with corrupt replicas: 0
    Missing blocks: 0
    Missing blocks (with replication factor 1): 0
    Low redundancy blocks with highest priority to recover: 0
    Pending deletion blocks: 0
Erasure Coded Block Groups: 
    Low redundancy block groups: 0
    Block groups with corrupt internal blocks: 0
    Missing block groups: 0
    Low redundancy blocks with highest priority to recover: 0
    Pending deletion blocks: 0

-------------------------------------------------
Live datanodes (5):

Name: 172.18.0.2:9866 (h01)
Hostname: h01
Decommission Status : normal
Configured Capacity: 62725623808 (58.42 GB)
DFS Used: 28672 (28 KB)
Non DFS Used: 59433668608 (55.35 GB)
DFS Remaining: 75210752 (71.73 MB)
DFS Used%: 0.00%
DFS Remaining%: 0.12%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Mon Aug 17 16:31:45 UTC 2020
Last Block Report: Mon Aug 17 16:20:33 UTC 2020
Num of Blocks: 0


Name: 172.18.0.3:9866 (h02.hadoop)
Hostname: h02
Decommission Status : normal
Configured Capacity: 62725623808 (58.42 GB)
DFS Used: 28672 (28 KB)
Non DFS Used: 59433668608 (55.35 GB)
DFS Remaining: 75210752 (71.73 MB)
DFS Used%: 0.00%
DFS Remaining%: 0.12%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Mon Aug 17 16:31:45 UTC 2020
Last Block Report: Mon Aug 17 16:20:29 UTC 2020
Num of Blocks: 0


Name: 172.18.0.4:9866 (h03.hadoop)
Hostname: h03
Decommission Status : normal
Configured Capacity: 62725623808 (58.42 GB)
DFS Used: 28672 (28 KB)
Non DFS Used: 59433668608 (55.35 GB)
DFS Remaining: 75210752 (71.73 MB)
DFS Used%: 0.00%
DFS Remaining%: 0.12%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Mon Aug 17 16:31:45 UTC 2020
Last Block Report: Mon Aug 17 16:20:29 UTC 2020
Num of Blocks: 0


Name: 172.18.0.5:9866 (h04.hadoop)
Hostname: h04
Decommission Status : normal
Configured Capacity: 62725623808 (58.42 GB)
DFS Used: 28672 (28 KB)
Non DFS Used: 59433668608 (55.35 GB)
DFS Remaining: 75210752 (71.73 MB)
DFS Used%: 0.00%
DFS Remaining%: 0.12%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Mon Aug 17 16:31:45 UTC 2020
Last Block Report: Mon Aug 17 16:20:29 UTC 2020
Num of Blocks: 0


Name: 172.18.0.6:9866 (h05.hadoop)
Hostname: h05
Decommission Status : normal
Configured Capacity: 62725623808 (58.42 GB)
DFS Used: 28672 (28 KB)
Non DFS Used: 59433668608 (55.35 GB)
DFS Remaining: 75210752 (71.73 MB)
DFS Used%: 0.00%
DFS Remaining%: 0.12%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Mon Aug 17 16:31:45 UTC 2020
Last Block Report: Mon Aug 17 16:20:29 UTC 2020
Num of Blocks: 0

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)