运行bin/hadoop fsck / 后显示如下结果:
....................................................................................................
....................................Status: HEALTHY
Total size: 1554981215166 B
Total dirs: 2545
Total files: 75036
Total blocks (validated): 65681 (avg. block size 23674749 B)
[color=]Minimally replicated blocks: 65681 (100.0 %)
[color=] Over-replicated blocks: 63881 (97.25948 %)
[color=] Under-replicated blocks: 0 (0.0 %)
[color=] Mis-replicated blocks: 0 (0.0 %)
Default replication factor: 3
Average block replication: 2.9725947
Corrupt blocks: 0
Missing replicas: 0 (0.0 %)
Number of data-nodes: 6
Number of racks: 1
The filesystem under path '/' is HEALTHY
请问 红色部分字体表达的含义是什么吗?
[color=]Ravi Phulari
Minimally replicated blocks: 51224 (100.0 %)
These are the minimally replicated block , you can set minimum block replication factor in hdfs-site.xml . If there are any blocks which are not minimally replicated then NN will try to replicate them. Over-replicated blocks: 0 (0.0 %)
These are the excessive replicated block. Over-replicated blocks are harmless and could have been created due to running Balancer. Under-replicated blocks: 0 (0.0 %)
Blocks which are under-replicated than min Mis-replicated blocks: 7 (0.013665469 %)
blocks that do not satisfy block placement policy Default replication factor: 3
Default block replication factor set using
dfs.replication
3 Average block replication: 3.0
Average BR Missing replicas: 0 (0.0 %)
If there are any missing block replicas then that count is listed here. Number of data-nodes: 83
Number of data nodes in your cluster Number of racks: 6
Number of Racks in your cluster
You can configure your block replications by using following config settings in hdfs-site.xml
dfs.replication
3
Default block replication.
The actual number of replications can be specified when the file is created.
The default is used if replication is not specified in create time.
Suresh Srinivas
Minimally replicated blocks: 51224 (100.0 %)
// Number of blocks with number of replicas >= minimum number of replicas configured in "dfs.namenode.replication.min"
Over-replicated blocks: 0 (0.0 %)
// Number of blocks that have more replicas than the replication factor of the file
Under-replicated blocks: 0 (0.0 %)
// Number of blocks that have less replicas than the replication factor of the file
Mis-replicated blocks: 7 (0.013665469 %)
// Blocks with replicas that does not satisfy topology rules. For example instead of 2 replicas in 1 rack and 1 replica in a separate block, all replicas ended up on the same rack.
Default replication factor: 3
// Default replication factor used by the system
Average block replication: 3.0
// Average replicas per block
Missing replicas: 0 (0.0 %)
// Blocks with all the replicas missing