可以使用如下代码查看nameNode的元数据信息
hadoop fsck /park01/README.txt -files -blocks -locations
信息如下:
FSCK started by root (auth:SIMPLE) from /10.211.55.6 for path /park01/README.txt at Fri May 23 09:00:19 EDT 2008
/park01/README.txt 1366 bytes, 1 block(s): Under replicated BP-1482353373-10.211.55.6-1559728004904:blk_1073747988_7164. Target Replicas is 3 but found 1 replica(s).
0. BP-1482353373-10.211.55.6-1559728004904:blk_1073747988_7164 len=1366 repl=1 [10.211.55.6:50010]