Filesystem Size Used Available Use%
hdfs://black:8020 58.8 G 356 K 28.9 G 0%
2、查看文件列表:hdfs dfs -ls /
Found 3 items
drwxr-xr-x - hdfs hdfs 0 2016-10-15 13:03 /apps
drwxrwxrwx - hdfs hdfs 0 2016-10-15 13:05 /tmp
drwxr-xr-x - hdfs hdfs 0 2016-10-15 13:01 /user
3、查看目录下空间占用情况:hdfs dfs -du -h /
10.5 K /apps
2.2 K /tmp
0 /user
4、hdfs块检查:hdfs fsck /
Connecting to namenode via http://black:50070
FSCK started by hdfs (auth:SIMPLE) from /127.0.0.1 for path / at Sat May 20 06:05:04 CST 2017
.
/apps/hbase/data/WALs/black,60020,1495231329684/black%2C60020%2C1495231329684.1495231341393.meta: Under replicated BP-1010931634-127.0.0.1-1476507690874:blk_1073741983_1173. Target Replicas is 3 but found 1 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).
.
/apps/hbase/data/data/default/ambarismoketest/.tabledesc/.tableinfo.0000000001: Under replicated BP-1010931634-127.