title: Datanode started but not shown in dfsadmin -report
body: <p>I am trying to install Hadoop 3.1.0 into two virtual machines:</p>
  
  <p>The first machine contains one name node and one data node, the second contains one data node.</p>
  
  <p>I followed this article <a href="https://gaurav3ansal.blogspot.com/2017/08/installing-hadoop-300-alpha-4-multi.html?showComment=1532165047978#c3579785937813748568" rel="nofollow noreferrer">Install Hadoop 3.0.0 multi-node cluster on Ubuntu</a>. And every goes fine until i executed the start-dfs.sh and start-yarn.sh commands.</p>
  
  <p>When i run the <code>Jps</code> command on Name node it shows the following results:</p>
  
  <pre><code>16488 NameNode  
  16622 DataNode  
  17215 NodeManager  
  17087 ResourceManager  
  17530 Jps  
  16829 SecondaryNameNode
  </code></pre>
  
  <p>And when I run it on the Data node it shows:</p>
  
  <pre><code>2306 DataNode
  2479 NodeManager
  2581 Jps
  </code></pre>
  
  <p>But the weird thing is that when executing <code>hdfs dfsadmin -report</code> command it only shows <code>Live datanodes (1)</code> which is the local datanode.</p>
  
  <p>I made a lot of searches; I didn't find anything useful. </p>
  
  <p>I tried to:</p>
  
  <ol>
  <li>Execute <code>stop-all.sh</code></li>
  <li>Delete all files in Namenode and datanode directories</li>
  <li>delete all hadoop related files in temp directory</li>
  <li>executed <code>hdfs namenode -format</code> command</li>
  </ol>
  
  <p>There is a similar question here: <a href="https://stackoverflow.com/questions/31698184/hadoop-ui-shows-only-one-datanode">Hadoop UI shows only one Datanode</a> In which they suggested to change the hosts name. In my Namenode <code>/etc/hosts</code> file contains the following lines:</p>
  
  <pre><code>127.0.0.1   localhost
  127.0.1.1   hadoop-Namenode
  192.168.75.131  hadoop-Namenode
  192.168.75.132  hadoop-datanode-1
  </code></pre>
  
  <p>And in the Datanode <code>/etc/hosts</code> i have:</p>
  
  <pre><code>127.0.0.1   localhost
  127.0.1.1   hadoop-datanode-1
  192.168.75.131  hadoop-Namenode
  192.168.75.132  hadoop-datanode-1
  </code></pre>
  
  <p>Any suggestions?</p>