title: Hadoop dfs error : INFO ipc.Client: Retrying connect to server: localhost
body: <p>I have successfully setup a Hadoop cluster with 6 nodes (master, salve&lt;1-5>)</p>
  
  <ul>
  <li>Formatted the namenode -> done</li>
  <li>Starting up and shutting down cluster -> works fine</li>
  <li>Executing "hadoop dfs -ls /" gives this error -> <strong>Error: INFO ipc.Client: Retrying connect to server: localhost</strong></li>
  </ul>
  
  <p>I tried to see the services running using:</p>
  
  <pre><code>sudo netstat -plten | grep java
  hduser@ubuntu:~$ sudo netstat -plten | grep java
  </code></pre>
  
  <p>tcp        0      0 0.0.0.0:50070           0.0.0.0:*               LISTEN      1000       93307       11384/java<br>
  tcp        0      0 0.0.0.0:44440           0.0.0.0:*               LISTEN      1000       92491       11571/java<br>
  tcp        0      0 0.0.0.0:40633           0.0.0.0:*               LISTEN      1000       92909       11758/java<br>
  tcp        0      0 0.0.0.0:50010           0.0.0.0:*               LISTEN      1000       93449       11571/java<br>
  tcp        0      0 0.0.0.0:50075           0.0.0.0:*               LISTEN      1000       93673       11571/java<br>
  tcp        0      0 0.0.0.0:50020           0.0.0.0:*               LISTEN      1000       93692       11571/java<br>
  tcp        0      0 127.0.0.1:40485         0.0.0.0:*               LISTEN      1000       93666       12039/java<br>
  tcp        0      0 0.0.0.0:44582           0.0.0.0:*               LISTEN      1000       93013       11852/java<br>
  tcp        0      0 <strong>10.42.43.1:54310</strong>        0.0.0.0:*               LISTEN      1000       92471       11384/java<br>
  tcp        0      0 <strong>10.42.43.1:54311</strong>        0.0.0.0:*               LISTEN      1000       93290       11852/java<br>
  tcp        0      0 0.0.0.0:50090           0.0.0.0:*               LISTEN      1000       93460       11758/java<br>
  tcp        0      0 0.0.0.0:34154           0.0.0.0:*               LISTEN      1000       92179       11384/java<br>
  tcp        0      0 0.0.0.0:50060           0.0.0.0:*               LISTEN      1000       94200       12039/java<br>
  tcp        0      0 0.0.0.0:50030           0.0.0.0:*               LISTEN      1000       93550       11852/java </p>
  
  <p>Its the master IP binded to port 54310 and 54311 and not the localhost(loopback).</p>
  
  <p>The conf-site.xml has been properly configured:</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;property&gt;
  &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
  &lt;value&gt;/home/hduser/hadoop/tmp&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
  &lt;name&gt;fs.default.name&lt;/name&gt;
  &lt;value&gt;hdfs://master:54310&lt;/value&gt;
  &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Why is it expecting localhost to be binded to 54310 rather than the master hich I have configured here. Help appreciated. How do I resolve this ??</p>
  
  <p>Cheers</p>