| | 55 | |
| | 56 | == 觀察 block 分佈情形 == |
| | 57 | |
| | 58 | {{{ |
| | 59 | user0@hdp:~$ hadoop fsck /user/user0/test.img -files -blocks -locations |
| | 60 | FSCK started by user0 from /10.240.1.123 for path /user/user0/test.img at Sun |
| | 61 | Mar 23 02:11:08 UTC 2014 |
| | 62 | /user/user0/test.img 104857600 bytes, 2 block(s): OK |
| | 63 | 0. blk_-4422576463029178583_1044 len=67108864 repl=1 [10.240.1.123:50010] |
| | 64 | 1. blk_7793285600029540175_1044 len=37748736 repl=1 [10.240.1.123:50010] |
| | 65 | |
| | 66 | Status: HEALTHY |
| | 67 | Total size: 104857600 B |
| | 68 | Total dirs: 0 |
| | 69 | Total files: 1 |
| | 70 | Total blocks (validated): 2 (avg. block size 52428800 B) |
| | 71 | Minimally replicated blocks: 2 (100.0 %) |
| | 72 | Over-replicated blocks: 0 (0.0 %) |
| | 73 | Under-replicated blocks: 0 (0.0 %) |
| | 74 | Mis-replicated blocks: 0 (0.0 %) |
| | 75 | Default replication factor: 1 |
| | 76 | Average block replication: 1.0 |
| | 77 | Corrupt blocks: 0 |
| | 78 | Missing replicas: 0 (0.0 %) |
| | 79 | Number of data-nodes: 9 |
| | 80 | Number of racks: 1 |
| | 81 | FSCK ended at Sun Mar 23 02:11:08 UTC 2014 in 9 milliseconds |
| | 82 | |
| | 83 | |
| | 84 | The filesystem under path '/user/user0/test.img' is HEALTHY |
| | 85 | }}} |