A long and painful path, assuming you read access to all files (and do for directories):
hadoop fsck / -files -blocks | grep blk_520275863902385418_1002 -B 20
Then scan the backup from its matching block to the previous file name:
/hadoop/mapred/system/jobtracker.info 4 bytes, 1 block(s): OK
0. blk_520275863902385418_1002 len=4 repl=1
In this case, blk_5202 ... is part of the file /hadoop/mapred/system/jobtracker.info
Programmatically, this is not an interface to a node name that allows you to search by block identifier, but you could examine the source of the secondary name of the node and see how it merges the changes, and then experiment on the saved output of the secondary name of the node (instead of risking working with live node file).
Good luck
source
share