how to find file from blockName in HDFS hadoop -


what's easiest way find file associated block in hdfs given block name/id

the long , painful way, assuming have read access files (and execute directories):

hadoop fsck / -files -blocks | grep blk_520275863902385418_1002 -b 20 

then scan block match previous file name:

/hadoop/mapred/system/jobtracker.info 4 bytes, 1 block(s):  ok 0. blk_520275863902385418_1002 len=4 repl=1 

in case blk_5202... part of /hadoop/mapred/system/jobtracker.info file

programmatically, these isn't interface name node allows search block id, source secondary name node , see how consolidates edits - experiment on saved output secondary name node (rather risking working on live name node file).

good luck!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -