|   | 87 |  | 
                  
                          |   | 88 | == 修改副本個數 == | 
                  
                          |   | 89 |  | 
                  
                          |   | 90 | {{{ | 
                  
                          |   | 91 | user0@hdp:~$ hadoop fs -setrep 2 /user/user0/test.img                          | 
                  
                          |   | 92 | Replication 2 set: hdfs://hdp:9000/user/user0/test.img | 
                  
                          |   | 93 | user0@hdp:~$ hadoop fsck /user/user0/test.img -files -blocks -locations        | 
                  
                          |   | 94 | FSCK started by user0 from /10.240.1.123 for path /user/user0/test.img at Sun  | 
                  
                          |   | 95 | Mar 23 02:45:11 UTC 2014                                                       | 
                  
                          |   | 96 | /user/user0/test.img 104857600 bytes, 2 block(s):  OK                          | 
                  
                          |   | 97 | 0. blk_-4422576463029178583_1044 len=67108864 repl=2 [10.240.1.123:50010, 10.2 | 
                  
                          |   | 98 | 40.174.73:50010]                                                               | 
                  
                          |   | 99 | 1. blk_7793285600029540175_1044 len=37748736 repl=2 [10.240.1.123:50010, 10.24 | 
                  
                          |   | 100 | 0.116.151:50010]                                                               | 
                  
                          |   | 101 |                                                                                | 
                  
                          |   | 102 | Status: HEALTHY                                                                | 
                  
                          |   | 103 |  Total size:    104857600 B                                                    | 
                  
                          |   | 104 |  Total dirs:    0                                                              | 
                  
                          |   | 105 |  Total files:   1                                                              | 
                  
                          |   | 106 |  Total blocks (validated):      2 (avg. block size 52428800 B)                 | 
                  
                          |   | 107 |  Minimally replicated blocks:   2 (100.0 %)                                    | 
                  
                          |   | 108 |  Over-replicated blocks:        0 (0.0 %)                                      | 
                  
                          |   | 109 |  Under-replicated blocks:       0 (0.0 %)                                      | 
                  
                          |   | 110 |  Mis-replicated blocks:         0 (0.0 %)                                      | 
                  
                          |   | 111 |  Default replication factor:    1                                              | 
                  
                          |   | 112 |  Average block replication:     2.0                                            | 
                  
                          |   | 113 |  Corrupt blocks:                0                                              | 
                  
                          |   | 114 |  Missing replicas:              0 (0.0 %)                                      | 
                  
                          |   | 115 |  Number of data-nodes:          9                                              | 
                  
                          |   | 116 |  Number of racks:               1                                              | 
                  
                          |   | 117 | FSCK ended at Sun Mar 23 02:45:11 UTC 2014 in 0 milliseconds                   | 
                  
                          |   | 118 |                                                                                | 
                  
                          |   | 119 |                                                                                | 
                  
                          |   | 120 | The filesystem under path '/user/user0/test.img' is HEALTHY                    | 
                  
                          |   | 121 | }}} |