hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Unable to start namenode : Address already in use
Date Sat, 06 Jun 2015 13:54:27 GMT
What OS are you using ?

Can you try netstat with this command ?

netstat -tulpn | grep 50070

On a system where DataNode is running as process 11272, I issued two
commands:

[root@c12 ~]# netstat -tulpn | grep 11272
tcp        0      0 0.0.0.0:50010               0.0.0.0:*
LISTEN      11272/java
tcp        0      0 0.0.0.0:50075               0.0.0.0:*
LISTEN      11272/java
tcp        0      0 0.0.0.0:8010                0.0.0.0:*
LISTEN      11272/java
udp        0      0 0.0.0.0:58175               0.0.0.0:*
            11272/java
[root@c12 ~]# netstat -a | grep 11272
[root@c12 ~]#

FYI

On Sat, Jun 6, 2015 at 2:07 AM, Ravikant Dindokar <ravikant.iisc@gmail.com>
wrote:

> Hi user,
>
> I have hadoop with version 2.6.0 on cluster. When I am trying to start dfs
> I am getting following error :
>
>
> 2015-06-06 14:35:38,042 INFO org.apache.hadoop.http.HttpServer2:
> HttpServer.start() threw a non Bind IOException
> java.net.BindException: Port in use: 0.0.0.0:50070
>         at
> org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:891)
>         at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:827)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:703)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:590)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:762)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:746)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1438)
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
> *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:444)
>         at sun.nio.ch.Net.bind(Net.java:436)
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
>         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:886)
>         ... 8 more
>
>
> When I checked for port 50070 using netstat command , I did not see any
> program using it :
>
> $ netstat -a |grep 50070
> $
>
>
> Please help!
>
> Thanks
> Ravikant
>

Mime
View raw message