<?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: Failed to startup HDFS NameNode in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103966#M66865</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;- that bug was solved in the version i am using (2.2.2)&lt;/P&gt;&lt;P&gt;- iptables are disabled and so selinux&lt;/P&gt;&lt;P&gt;- hostname and hostname -f have the same output "namenode".&lt;/P&gt;&lt;P&gt;- i restarted the machine but the issue is the same. &lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 21:19:51 GMT</pubDate>
    <dc:creator>oussema</dc:creator>
    <dc:date>2017-02-14T21:19:51Z</dc:date>
    <item>
      <title>Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103964#M66863</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;i have installed ambari 2.2.2 on Centos 6.8 Azure platform. i ve installed services i need successfully, but when i want to start them, zookeeper starts fine, but HDFS does not!&lt;/P&gt;&lt;P&gt;here is the log of /var/log/hadoop/hdfs/hadoop-hdfs-namenode-namenode.log:&lt;/P&gt;&lt;P&gt;2017-02-14 11:00:21,714 ERROR namenode.NameNode (NameNode.java:main(1714)) - Failed to start namenode.
java.net.BindException: Port in use: namenode:50070
  at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:919)
  at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:856)
  at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:156)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:892)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:720)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:951)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:935)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1641)
  at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1709)
Caused by: java.net.BindException: Cannot assign requested address
  at sun.nio.ch.Net.bind0(Native Method)
  at sun.nio.ch.Net.bind(Net.java:433)
  at sun.nio.ch.Net.bind(Net.java:425)
  at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
  at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
  at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
  at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:914)
  ... 8 more
2017-02-14 11:00:21,715 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 1
2017-02-14 11:00:21,718 INFO  namenode.NameNode (LogAdapter.java:info(47)) - SHUTDOWN_MSG:&lt;/P&gt;&lt;P&gt;i want to mention that the port 50070 is not in use, cause the following command does not return any line.&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;netstat -tulpn | grep :50070&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Also, i have changed the port number to 50071, restarted everything, but the issue was not solved.&lt;/P&gt;&lt;P&gt;Any help will be appreciated&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:22:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103964#M66863</guid>
      <dc:creator>oussema</dc:creator>
      <dc:date>2017-02-14T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103965#M66864</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16045/oussema.html" nodeid="16045"&gt;@oussama ben lamine&lt;/A&gt;&lt;P&gt;Suspected you are hitting - &lt;A href="https://issues.apache.org/jira/browse/AMBARI-10021" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-10021&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you just restart the Machine and check to start the namenode process again. Let me know if that helps.&lt;/P&gt;&lt;P&gt;Please do make sure you have iptables and selinux disabled and hostname set correctly.&lt;/P&gt;&lt;P&gt;Check $hostname and $hostname -f output. Both should match.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:34:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103965#M66864</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-02-14T19:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103966#M66865</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;- that bug was solved in the version i am using (2.2.2)&lt;/P&gt;&lt;P&gt;- iptables are disabled and so selinux&lt;/P&gt;&lt;P&gt;- hostname and hostname -f have the same output "namenode".&lt;/P&gt;&lt;P&gt;- i restarted the machine but the issue is the same. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:19:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103966#M66865</guid>
      <dc:creator>oussema</dc:creator>
      <dc:date>2017-02-14T21:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103967#M66866</link>
      <description>&lt;P&gt;I found the source of the problem and i solved it!&lt;/P&gt;&lt;P&gt;i was using public ip in my hosts file. as Azure doesn't allow binding on public ip so it was impossible to start services. &lt;/P&gt;&lt;P&gt;i changed all to private IP and the issue is solved. thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 22:36:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103967#M66866</guid>
      <dc:creator>oussema</dc:creator>
      <dc:date>2017-02-14T22:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103968#M66867</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16045/oussema.html" nodeid="16045"&gt;@oussama ben lamine&lt;/A&gt;&lt;P&gt;Can you pass me the output of command -&lt;/P&gt;&lt;P&gt;$ps -aef |grep namenode&lt;/P&gt;&lt;P&gt;$netstat -taupen |grep &amp;lt;pid_of_namenode&amp;gt;&lt;/P&gt;&lt;P&gt;$cat /etc/hosts&lt;/P&gt;&lt;P&gt;$ifconfig &lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 22:36:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103968#M66867</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-02-14T22:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103969#M66868</link>
      <description>&lt;P&gt;thanks for the interest, but i ve solved the issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 23:11:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103969#M66868</guid>
      <dc:creator>oussema</dc:creator>
      <dc:date>2017-02-14T23:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103970#M66869</link>
      <description>&lt;P&gt;[root@sandbox ~]# ps -aef |grep namenode
hdfs       616     0  7 05:50 ?        00:00:19 /usr/lib/jvm/java/bin/java -Dproc_namenode -Xmx250m -Dhdp.version=2.6.0.3-8 -Djava.net.preferIPv4Stack=true -Dhdp.version= -Djava.net.preferIPv4Stack=true -Dhdp.version= -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop/hdfs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/hdp/2.6.0.3-8/hadoop -Dhadoop.id.str=hdfs -Dhadoop.root.logger=INFO,console -Djava.library.path=:/usr/hdp/2.6.0.3-8/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.6.0.3-8/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhdp.version=2.6.0.3-8 -Dhadoop.log.dir=/var/log/hadoop/hdfs -Dhadoop.log.file=hadoop-hdfs-namenode-sandbox.hortonworks.com.log -Dhadoop.home.dir=/usr/hdp/2.6.0.3-8/hadoop -Dhadoop.id.str=hdfs -Dhadoop.root.logger=INFO,RFA -Djava.library.path=:/usr/hdp/2.6.0.3-8/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.6.0.3-8/hadoop/lib/native:/usr/hdp/2.6.0.3-8/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.6.0.3-8/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -server -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:ErrorFile=/var/log/hadoop/hdfs/hs_err_pid%p.log -XX:NewSize=50m -XX:MaxNewSize=100m -Xloggc:/var/log/hadoop/hdfs/gc.log-201705260550 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -Xms250m -Xmx250m -Dhadoop.security.logger=INFO,DRFAS -Dhdfs.audit.logger=INFO,DRFAAUDIT -XX:OnOutOfMemoryError="/usr/hdp/current/hadoop-hdfs-namenode/bin/kill-name-node" -Dorg.mortbay.jetty.Request.maxFormContentSize=-1 -server -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:ErrorFile=/var/log/hadoop/hdfs/hs_err_pid%p.log -XX:NewSize=50m -XX:MaxNewSize=100m -Xloggc:/var/log/hadoop/hdfs/gc.log-201705260550 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -Xms250m -Xmx250m -Dhadoop.security.logger=INFO,DRFAS -Dhdfs.audit.logger=INFO,DRFAAUDIT -XX:OnOutOfMemoryError="/usr/hdp/current/hadoop-hdfs-namenode/bin/kill-name-node" -Dorg.mortbay.jetty.Request.maxFormContentSize=-1 -server -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:ErrorFile=/var/log/hadoop/hdfs/hs_err_pid%p.log -XX:NewSize=50m -XX:MaxNewSize=100m -Xloggc:/var/log/hadoop/hdfs/gc.log-201705260550 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -Xms250m -Xmx250m -Dhadoop.security.logger=INFO,DRFAS -Dhdfs.audit.logger=INFO,DRFAAUDIT -XX:OnOutOfMemoryError="/usr/hdp/current/hadoop-hdfs-namenode/bin/kill-name-node" -Dorg.mortbay.jetty.Request.maxFormContentSize=-1 -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.NameNode
root      4642  4496  0 05:55 pts/0    00:00:00 grep namenode
[root@sandbox ~]# netstat -taupen |grep  4496
[root@sandbox ~]# netstat -taupen |grep 4642
[root@sandbox ~]# cat /etc/hosts
127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2      sandbox.hortonworks.com sandbox
[root@sandbox ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:42:AC:11:00:02
          inet addr:172.17.0.2  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1421 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:423909 (413.9 KiB)  TX bytes:2673388 (2.5 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:20245 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20245 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14721372 (14.0 MiB)  TX bytes:14721372 (14.0 MiB)&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 13:03:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103970#M66869</guid>
      <dc:creator>shatesttest</dc:creator>
      <dc:date>2017-05-26T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to startup HDFS NameNode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103971#M66870</link>
      <description>&lt;P&gt;I would like to say that same thing happens on RHEL 7 on AWS (EC2). It costed me both money and time! Thanks for this, took me quite some time to find it. Sorry for bumping old post!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 07:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-startup-HDFS-NameNode/m-p/103971#M66870</guid>
      <dc:creator>danieljankovics</dc:creator>
      <dc:date>2019-01-07T07:32:22Z</dc:date>
    </item>
  </channel>
</rss>

