看文件信息
hadoop fsck /user/filename
更详细的。
hadoop fsck /user/filename -files -blocks
-locations -racks
-files 文件分块信息,
-blocks 在带-files参数后才显示block信息
-locations 在带-blocks参数后才显示block块所在datanode的具体IP位置,
-racks
在带-files参数后显示机架位置
@master ~]$ hadoop fsck /user/jdk-7u45-linux-x64.tar.gz -files -blocks -racks -locations
Warning: $HADOOP_HOME is deprecated.
FSCK started by zzjlzx from /192.168.2.210 for path /user/jdk-7u45-linux-x64.tar.gz at Thu Nov 28 22:52:23 PST 2013
/user/jdk-7u45-linux-x64.tar.gz 138094686 bytes, 3 block(s): OK
0. blk_-5039448112740702458_4569 len=67108864 repl=3 [/default-rack/192.168.2.213:50010, /default-rack/192.168.2.211:50010, /default-rack/192.168.2.212:50010]
1. blk_-6336966993930504668_4569 len=67108864 repl=3 [/default-rack/192.168.2.211:50010, /default-rack/192.168.2.213:50010, /default-rack/192.168.2.212:50010]
2. blk_1204997530446910218_4569 len=3876958 repl=3 [/default-rack/192.168.2.213:50010, /default-rack/192.168.2.212:50010, /default-rack/192.168.2.211:50010]
Status: HEALTHY
Total size: 138094686 B
Total dirs: 0
Total files: 1
Total blocks (validated): 3 (avg. block size 46031562 B)
Minimally replicated blocks: 3 (100.0 %)
Over-replicated blocks: 0 (0.0 %)
Under-replicated blocks: 0 (0.0 %)
Mis-replicated blocks: 0 (0.0 %)
Default replication factor: 3
Average block replication: 3.0
Corrupt blocks: 0
Missing replicas: 0 (0.0 %)
Number of data-nodes: 3
Number of racks: 1
FSCK ended at Thu Nov 28 22:52:23 PST 2013 in 1 milliseconds
The filesystem under path '/user/jdk-7u45-linux-x64.tar.gz' is HEALTHY
阅读(4592) | 评论(0) | 转发(0) |