Re: datanode to blocks mapping

2012-02-16 Thread Ravi Prakash
Selwa, I'm glad I could help. I suggest you import the source code in an IDE (we use Eclipse) and navigate around it. The outline view in Eclipse is a lifesaver :) BlocksMap does not seem to have that API. I would try FSNamesystem on the namenode. On the client side, the DFSClient class is what o

Re: datanode to blocks mapping

2012-02-15 Thread Selwa
Ravi, thank u very much for your reply. i am using version 0.21.0 . hope your comment will help me a lot. BTW, after i got the blocksMap, can i request this blocksMap to return blocks of a given file. i mean how to map a filename to its blocks? Best wishes, Selwa -- View this message in context:

Re: datanode to blocks mapping

2012-02-15 Thread Ravi Prakash
Selwa, You are *creating* a new BlocksMap with the first line. It is NOT an API to get the blockmap from the namenode. The Namenode stores its blocks in a Blockmap in the BlockManager (for 0.23) or FSNameSystem (for 0.20) Which version are you using? Regards, Ravi. On Sat, Feb 11, 2012 at 7:41