Created
August 21, 2017 18:09
-
-
Save anjijava16/32e838846571936e39248a09147d6076 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i) hadoop fs -Ddfs.block.size=67108864 -Ddfs.replication=4 -copyFromLocal pom.xml /app/data | |
ii) hdfs fsck -blocks -files -locations /app/data/pom.xml | |
Output : Connecting to namenode via http://localhost:50070 | |
FSCK started by hadoop (auth:SIMPLE) from /127.0.0.1 for path /app/data/pom.xml at Mon Aug 21 23:36:58 IST 2017 | |
/app/data/pom.xml 2617 bytes, 1 block(s): Under replicated BP-806356112-127.0.0.1-1489344343967:blk_1073742850_2027. Target Replicas is 4 but found 1 replica(s). | |
0. BP-806356112-127.0.0.1-1489344343967:blk_1073742850_2027 len=2617 repl=1 [127.0.0.1:50010] | |
Status: HEALTHY | |
Total size: 2617 B | |
Total dirs: 0 | |
Total files: 1 | |
Total symlinks: 0 | |
Total blocks (validated): 1 (avg. block size 2617 B) | |
Minimally replicated blocks: 1 (100.0 %) | |
Over-replicated blocks: 0 (0.0 %) | |
Under-replicated blocks: 1 (100.0 %) | |
Mis-replicated blocks: 0 (0.0 %) | |
Default replication factor: 1 | |
Average block replication: 1.0 | |
Corrupt blocks: 0 | |
Missing replicas: 3 (75.0 %) | |
Number of data-nodes: 1 | |
Number of racks: 1 | |
FSCK ended at Mon Aug 21 23:36:58 IST 2017 in 7 milliseconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment