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

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *