<?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 start namenode. java.net.BindException    Port in use in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228572#M70333</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The error says port is 50070&lt;/P&gt;&lt;PRE&gt;Port in use master01.pp.com:50070&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So you need to kill the Process that is listed in the netstat output.&lt;/P&gt;&lt;PRE&gt;#  netstat -tnlpa | grep 50070

#  kill  -9  $THE_PID_FROM_ABOVE_COMMAND&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 20:42:38 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-26T20:42:38Z</dc:date>
    <item>
      <title>Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228570#M70331</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;when we start the namenode we get Port in use&lt;/P&gt;&lt;P&gt;how to know which port is in use ?&lt;/P&gt;&lt;P&gt;ERROR namenode.NameNode (NameNode.java:main(1774)) - Failed to start namenode.
java.net.BindException: Port in use: master01.pp.com:50070
        at org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:983)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1006)
        at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1063)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:920)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:170)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:933)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:746)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:992)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:976)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1701)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1769)
Caused by: java.net.BindException: Address already in use
        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.bindListener(HttpServer2.java:971)
        at org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1002)
        ... 9 more&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:33:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228570#M70331</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-10-26T20:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228571#M70332</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What does the netstat output shows on the NN host?&lt;/P&gt;&lt;P&gt;The "java.net.BindException: Port in use master01.pp.com:&lt;STRONG&gt;50070&lt;/STRONG&gt;" indicates that the port is being used by some other process.   So please find the Process which is using that port and kill that then try restarting the NN.&lt;/P&gt;&lt;PRE&gt;# netstat -tnlpa | grep 50070&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:39:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228571#M70332</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-26T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228572#M70333</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The error says port is 50070&lt;/P&gt;&lt;PRE&gt;Port in use master01.pp.com:50070&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So you need to kill the Process that is listed in the netstat output.&lt;/P&gt;&lt;PRE&gt;#  netstat -tnlpa | grep 50070

#  kill  -9  $THE_PID_FROM_ABOVE_COMMAND&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:42:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228572#M70333</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-26T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228573#M70334</link>
      <description>&lt;P&gt;sorry you right&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:46:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228573#M70334</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-10-26T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228574#M70335</link>
      <description>&lt;P&gt;Jay can you please help with the case - &lt;A href="https://community.hortonworks.com/questions/142356/how-to-recover-the-standby-name-node-in-ambari-clu.html" target="_blank"&gt;https://community.hortonworks.com/questions/142356/how-to-recover-the-standby-name-node-in-ambari-clu.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:49:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228574#M70335</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-10-26T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to start namenode. java.net.BindException    Port in use</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228575#M70336</link>
      <description>&lt;P&gt;cheers &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; , that solved my other issue&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 10:02:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-start-namenode-java-net-BindException-Port-in-use/m-p/228575#M70336</guid>
      <dc:creator>Vid</dc:creator>
      <dc:date>2018-03-29T10:02:16Z</dc:date>
    </item>
  </channel>
</rss>

