title: hadoop hostname can't be resolved by local machine
body: <p>I am deploying hadoop 2.6.3 cluster mode on a remote cluster using SSH.</p>
  
  <p>Followed those tutorial online and everything worked except accessing the web ui from local machine. </p>
  
  <p>For example, the resource manager web ui address is <a href="http://namenode01-bi-dev/:8050" rel="nofollow">http://namenode01-bi-dev/:8050</a>. My local machine can't resovle the <strong>namenode01-bi-dev</strong> so i have to type the ip addreess manually. This make sense because the namenode and datanode hostname are configured only on the /etc/hosts in hadoop cluster.</p>
  
  <p>Within the resource manager web ui, every link pointing to other web ui like the datanode web ui starts with the corresponding hostname which can't be resolved by local machine.</p>
  
  <p>Currently, I can only overcome this by adding all the ip/hostname binding to my local /etc/hosts.</p>
  
  <p>I have tried to set all hostname same as the corresponding IP but this gives me the folloing error:</p>
  
  <pre><code>org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException:
  Datanode denied communication with namenode because hostname cannot be 
  resolved (ip=10.104.90.43, hostname=10.104.90.43):
  </code></pre>
  
  <p>I also tried to set those web ui address on yarn-site.xml using IP address instead of their hostname. But the web ui address still starts with the hostname.</p>
  
  <p>Also, I tried use <strong>hostname</strong> command to change the hostname of namenode and datanode to their IP address. But this doesn't work too.</p>
  
  <p>Is there anything else I can do or configure on the hadoop cluster so that the web ui address it use doesn't start with the hostname but the real IP address?</p>