Skip to main content

How to check hadoop health from commandline

from the hadoop home directory:
# ./bin/hadoop fsck /

FSCK started by root from /10.1.1.2 for path / at Mon Apr 15 14:16:20 EEST 2013
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
..............................................................Status: HEALTHY
Total size:                               6907330009 B
Total dirs:                               491
Total files:                               1162 (Files currently being written: 3)
Total blocks (validated):          1215 (avg. block size 5685045 B)
Minimally replicated blocks:     1215 (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:            3
Number of racks:                    1
FSCK ended at Mon Apr 15 14:16:20 EEST 2013 in 116 milliseconds


The filesystem under path '/' is HEALTHY

Comments

Popular posts from this blog