Is it possible to get a Host-address to Host-name mapping in the JIP ? Someone please help me with this!
Thanks, Matthew On Thu, May 12, 2011 at 5:36 PM, Matthew John <tmatthewjohn1...@gmail.com>wrote: > Hi all, > > The String[] that is output by the InputSplit.getLocations() gives the list > of nodes where the input split resides. > But the node detail is either represented as the ip-address or the hostname > (for eg - an entry in the list could be either 10.72.147.109 or mattHDFS1 > (hostname). Is it possible to make this consistent. I am trying to do some > work by parsing an ID number embedded in the Hostname and this mixed > representation is giving me hell lot of problems. > > How to resolve this ? > > Thanks, > Matthew >