There is a file called BlocksMap.java which does the same. You can also refer to FSNamesystem.java which does the book keeping activity like keeping track of several tables including machine->blocklist ~Kartheek
On Sat, Nov 19, 2011 at 10:09 AM, Pavan Kulkarni <pavan.babu...@gmail.com>wrote: > Hi all, > > I am working on a class project which involves Development in HADOOP. > To implement a certain part I need the Datanode -> Block's map.(i.e. a > mapping which shows the list of blocks on a given datanode) > But I am unable to find this mapping in any of the classes. Any help would > be highly appreciated. > > Thanking You, > > -- > With Regards > Pavan Kulkarni >