1、查看集群的空间使用状态
[hduser@master1 bin]$ ./hdfs dfsadmin -report
Configured Capacity: 8453768839168 (7.69 TB)
Present Capacity: 7959274510394 (7.24 TB)
DFS Remaining: 4128882869718 (3.76 TB)
DFS Used: 3830391640676 (3.48 TB)
DFS Used%: 48.12%
Under replicated blocks: 18
Blocks with corrupt replicas: 0
Missing blocks: 0
Missing blocks (with replication factor 1): 0
-------------------------------------------------
Live datanodes (5):
Name: 192.168.11.137:50010 (slave5)
Hostname: slave5
Decommission Status : Normal
Configured Capacity: 1056617381888 (984.05 GB)
DFS Used: 736041209958 (685.49 GB)
Non DFS Used: 66876043079 (62.28 GB)
DFS Remaining: 253700128851 (236.28 GB)
DFS Used%: 69.66%
DFS Remaining%: 24.01%
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: 30
Last contact: Tue Jul 03 15:06:51 CST 2018
Name: 192.168.11.134:50010 (slave2)
Hostname: slave2
Decommission Status : Normal
Configured Capacity: 2113511358464 (1.92 TB)
DFS Used: 749551308902 (698.07 GB)