fsck检查hadoop文件系统的一致性

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[hadoop@hostname /home/q/hadoop/hadoop-2.3.0-cdh5.1.0]$ ./bin/hdfs fsck / 
14/10/23 11:17:31 WARN ssl.FileBasedKeyStoresFactory: The property 'ssl.client.truststore.location' has not been set, no TrustStore will be loaded
Connecting to namenode via http://hostname:50070
FSCK started by hadoop (auth:SIMPLE) from /192.168.28.11 for path / at Thu Oct 23 11:17:32 CST 2014
............................................................................................Status: HEALTHY
Total size: 91509994 B (Total open files size: 99 B)
Total dirs: 162
Total files: 92
Total symlinks: 0 (Files currently being written: 11)
Total blocks (validated): 92 (avg. block size 994673 B) (Total open file blocks (not validated): 11)
Minimally replicated blocks: 92 (100.0 %) 满足最小备份要求的块数量
Over-replicated blocks: 0 (0.0 %)
Under-replicated blocks: 0 (0.0 %) 不满足备份数量要求的块叫备份不足块,HDFS会自动修复丢失的备份,用现存的可用备份生成新的备份
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: 10 datanode的数量
Number of racks: 1
FSCK ended at Thu Oct 23 11:17:32 CST 2014 in 26 milliseconds
The filesystem under path '/' is HEALTHY