最近我将namenode格式化为hdfs (hadoop namenode format )
,但是当我启动hdfs时,它无法将任何数据上传到HDFS
,然后删除datanode目录以确保具有相同的命名空间。
但是当我hdfs dfsadmin -report
它有一些奇怪的东西时
Live datanodes (3):
Name: 192.168.0.30:50010 (hadoop1)
Hostname: hadoop1
Rack: /default
Decommission Status : Normal
Configured Capacity: 0 (0 B)
DFS Used: 8192 (8 KB)
Non DFS Used: 0 (0 B)
DFS Remaining: 0 (0 B)
DFS Used%: 100.00%
DFS Remaining%: 0.00%
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: 2
Last contact: Thu Mar 22 14:10:41 CST 2018
所有数据节点dfs used 100% & remining 0%
但它在磁盘上也有可用的空间,
[root@hadoop1 nn]# df -h /dfs/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 70G 55G 16G 78% /
有什么想法吗?
干杯