<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Datanode starts but doesn't connect to namenode in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/328177#M230210</link>
    <description>&lt;P&gt;Thanks for the Solution&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 02:22:15 GMT</pubDate>
    <dc:creator>Anmol</dc:creator>
    <dc:date>2021-10-20T02:22:15Z</dc:date>
    <item>
      <title>Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133899#M96561</link>
      <description>&lt;P&gt;
	I installed a 2 node hadoop cluster. The master and slave node starts separately but the datanode isn't shown in namenode webUI. The log file for datanode shows the following error : &lt;/P&gt;&lt;PRE&gt;
	2016-02-09 23:30:53,920 INFO org.apache.hadoop.ipc.Server: IPC Server Responder: starting
	2016-02-09 23:30:53,920 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 50020: starting
	2016-02-09 23:30:54,976 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: hadoop-master/172.17.25.5:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
	2016-02-09 23:30:55,977 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: hadoop-master/172.17.25.5:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
2016-02-09 23:21:15,062 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: hadoop-master/172.17.25.5:9000&lt;/PRE&gt;&lt;P&gt;The hosts file in slave is &lt;/P&gt;&lt;PRE&gt;172.17.25.5    hadoop-master
127.0.0.1    silp-ProLiant-DL360-Gen9
172.17.25.18    hadoop-slave-1
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

&lt;/PRE&gt;&lt;P&gt;the core-site.xml file is :&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;hdfs://hadoop-master:9000&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;dfs.permissions&amp;lt;/name&amp;gt;
       &amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Kindly help with this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:09:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133899#M96561</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-02-10T02:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133900#M96562</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2692/iit2013121.html" nodeid="2692"&gt;@Kumar Sanyam&lt;/A&gt;&lt;P&gt;Is there connectivity between the servers?&lt;/P&gt;&lt;P&gt;WARN org.apache.hadoop.hdfs.server.datanode.DataNode:Problem connecting to server: hadoop-master/172.17.25.5:9000&lt;/P&gt;&lt;P&gt;Please make sure that ssh works and iptable is off&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:13:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133900#M96562</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T02:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133901#M96563</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2692/iit2013121.html" nodeid="2692"&gt;@Kumar Sanyam&lt;/A&gt;&lt;P&gt;turn off ipv6 in /etc/hosts. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:16:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133901#M96563</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-10T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133902#M96564</link>
      <description>&lt;P&gt;1. To add on to Artem's idea.&lt;/P&gt;&lt;P&gt;Disable IPv6 Temporarily
'echo 1 &amp;gt; /proc/sys/net/ipv6/conf/&amp;lt;interface-name&amp;gt;/disable_ipv6' &lt;/P&gt;&lt;P&gt;eg 'echo 1 &amp;gt; /proc/sys/net/ipv6/conf/eth0/disable_ipv6' &lt;/P&gt;&lt;P&gt;Disable IPv6 Permanently across reboots &lt;/P&gt;&lt;P&gt;Edit the /etc/sysctl.conf and the following lines.&lt;/P&gt;&lt;P&gt;
# to disable IPv6 on all interfaces system wide
net.ipv6.conf.all.disable_ipv6 = 1 &lt;/P&gt;&lt;P&gt;# to disable IPv6 on a specific interface (e.g., eth0, lo) &lt;/P&gt;&lt;P&gt;net.ipv6.conf.lo.disable_ipv6 = 1 &lt;/P&gt;&lt;P&gt;net.ipv6.conf.eth0.disable_ipv6 = 1&lt;/P&gt;&lt;P&gt;2. Check the NTP server configuration  or just restart NTP on both servers&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 03:28:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133902#M96564</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-10T03:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133903#M96565</link>
      <description>&lt;P&gt;turn off ipv6 in /etc/sysconfig/network or /etc/sysconfif/network-manager/ifcfg-eth0&lt;/P&gt;&lt;P&gt;parameter&lt;/P&gt;&lt;P&gt;NETWORKING_IPV6=no&lt;/P&gt;&lt;P&gt;IPV6INIT=no&lt;/P&gt;&lt;P&gt;Please check selniux is disable or not if not then disable it and  reboot.&lt;/P&gt;&lt;P&gt;vi /etc/sysconfig/selinux&lt;/P&gt;&lt;P&gt;selinux=disabled&lt;/P&gt;&lt;P&gt;Also check ntp and iptable and firewall.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133903#M96565</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-02-17T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133904#M96566</link>
      <description>&lt;P&gt;thanks everyone..solved the problem. Actually the namenode was listening at localhost:9000 and datanode tried to connect at hadoop-master:9000, hence the error in connectivity. Changed the listening IP:port of namenode to hadoop-master:9000. &lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 04:05:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133904#M96566</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-02-18T04:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133905#M96567</link>
      <description>&lt;P&gt;I am facing the same issue. Could you please guide me how did you solve the problem. I am not able to get a clue from the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:35:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133905#M96567</guid>
      <dc:creator>pradeepkumart</dc:creator>
      <dc:date>2016-07-18T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133906#M96568</link>
      <description>&lt;P&gt;Would you please tell us how did you change localhost:9000 to master:9000. in core-site it is addressing master:9000. Why it picks 127.0.0.1? Which file I should make changes? &lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 00:34:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133906#M96568</guid>
      <dc:creator>fcher061</dc:creator>
      <dc:date>2016-08-10T00:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133907#M96569</link>
      <description>&lt;P&gt;Solution worked for me -&amp;gt; firewall was the reason on 64bit Ubunu 16.04 "sudo ufw allow 9000" changes the rules, then namenode listens with master:9000&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 00:59:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133907#M96569</guid>
      <dc:creator>fcher061</dc:creator>
      <dc:date>2016-08-10T00:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133908#M96570</link>
      <description>&lt;P&gt;You can check the ports with netstat -anp | grep 9000 before and after the change in the ufw&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 01:02:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133908#M96570</guid>
      <dc:creator>fcher061</dc:creator>
      <dc:date>2016-08-10T01:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133909#M96571</link>
      <description>&lt;P&gt;Thanks all for contributing to this post. I had the same issue on 
Centos 7 on a 2 node hadoop cluster. In my case firewall was the cause. 
After allowing my namenode port (in my case 8020) through firewall on 
namenode machine allowed datanodes to connect to namenode.&lt;/P&gt;&lt;P&gt;$ sudo firewall-cmd --zone=public --add-port=8020/tcp --permanent&lt;BR /&gt;
$ sudo firewall-cmd --reload&lt;/P&gt;,&lt;P&gt;Thanks all for contributing to this post. I had the same issue on Centos 7 on a 2 node hadoop cluster. In my case firewall was the cause. After allowing my namenode port (in my case 8020) through firewall on namenode machine allowed datanodes to connect to namenode.&lt;/P&gt;&lt;P&gt;$ sudo firewall-cmd --zone=public --add-port=8020/tcp --permanent&lt;BR /&gt;
$ sudo firewall-cmd --reload&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 03:36:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133909#M96571</guid>
      <dc:creator>dkant007</dc:creator>
      <dc:date>2018-12-14T03:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133910#M96572</link>
      <description>&lt;P&gt;add port to firewall and enjoy&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;sudo firewall-cmd --zone=public --add-port=8020/tcp --permanent&lt;BR /&gt;sudo firewall-cmd --reload &lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2019 21:07:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/133910#M96572</guid>
      <dc:creator>ha_ahmadkhani</dc:creator>
      <dc:date>2019-05-04T21:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode starts but doesn't connect to namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/328177#M230210</link>
      <description>&lt;P&gt;Thanks for the Solution&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 02:22:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-starts-but-doesn-t-connect-to-namenode/m-p/328177#M230210</guid>
      <dc:creator>Anmol</dc:creator>
      <dc:date>2021-10-20T02:22:15Z</dc:date>
    </item>
  </channel>
</rss>

