Delete hdfs block
$ hdfs fsck -delete -blockId blk_1079297169_5556518
Deleting a block (corrupted or unreplicated or under replicated or over replicated)
$ hdfs fsck / | grep 'Under replicated' | awk -F':' '{print $1}' >> underreplicated.txt
To copy all under replicated blocks to a file
0 Comments