In your hadoop-site.xml file in config set the following variable:

 <property>
  <name>dfs.datanode.dns.interface</name>
  <value>default</value>
<description>The name of the Network Interface from which a data node should
  report its IP address.
  </description>
 </property>

Change default to the name of your interface (network card), usually eth0, eth1, etc.

Dennis

Kevin wrote:
Hi,

The machines I am using each has multiple network cards, and hence
multiple IP addresses. Some of them look like a default IP. However, I
wish to use some other IPs, and tried to modify the hadoop-site.xml,
masters, and slaves files. But it looks that the IP still jumps to the
default ones when hadoop runs. Does anyone have an idea how I could
possibly make it work? Thank you!

-Kevin

Reply via email to