Hadoop NameNode Ip Address

mohamus picture mohamus · Jun 4, 2014 · Viewed 15k times · Source

I'm using Hadoop MapReduce paradigm, and i need to get the NameNode IP address from the DataNode, can any one give me an idea how to do this?

Thanks.

Answer

Tariq picture Tariq · Jun 4, 2014

Easiest way would be to quickly open the core-site.xml file under HADOOP_HOME/conf directory. The value of fs.default.name property will tell you the host and port where NN is running.