又看了一遍 |
tsyzzxq 发表于 2015-12-23 02:36 我的怎么没有类似于这一行: 0. BP-907579389-192.168.2.136-1450397645134:blk_1073741856_1032 len=162 repl=2 显示内容如下: [hadoop@master ~]$ hadoop fsck /user/hadoop/sort/data -file -blocks FSCK started by hadoop from /192.168.80.100 for path /user/hadoop/sort/data at Thu May 19 11:50:53 CST 2016 .Status: HEALTHY Total size: 36 B Total dirs: 0 Total files: 1 Total blocks (validated): 1 (avg. block size 36 B) Minimally replicated blocks: 1 (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: 4 Number of racks: 1 FSCK ended at Thu May 19 11:50:53 CST 2016 in 1 milliseconds The filesystem under path '/user/hadoop/sort/data' is HEALTHY |
斑竹:hadoop fsck filename -file -blocks不是可以查看文件对应的块吗? /user/hive/warehouse/userdb.db/employ/employee1.txt 162 bytes, 1 block(s): OK 0. BP-907579389-192.168.2.136-1450397645134:blk_1073741856_1032 len=162 repl=2 Status: HEALTHY Total size: 162 B Total dirs: 0 Total files: 1 Total symlinks: 0 Total blocks (validated): 1 (avg. block size 162 B) Minimally replicated blocks: 1 (100.0 %) Over-replicated blocks: 0 (0.0 %) Under-replicated blocks: 0 (0.0 %) Mis-replicated blocks: 0 (0.0 %) Default replication factor: 2 Average block replication: 2.0 Corrupt blocks: 0 Missing replicas: 0 (0.0 %) Number of data-nodes: 2 Number of racks: 1 FSCK ended at Sat Dec 19 19:42:19 CST 2015 in 36 milliseconds BP-1619066087-192.168.2.136-1450190319876为该namenode对应的blockpoolid blk_1073741864_1040为指定文件对应的BLOCK元数据名称,如果有多个BLOCK会显示多个 |
好文啊!!!!!!!!! |
这么艰涩我居然看完了 |