Unable to start secondarynamenode, datanode, nodemanager while starting hadoop

2017-10-22T18:32:59

I am using Hadoop hadoop-2.6.0, while starting hadoop services unable to start secondarynamenode, datanode, nodemanager services.
Getting Java.net.bind exceptions.

NodeManager:

org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: Problem binding to [0.0.0.0:8040] java.net.BindException: Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
    at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.getServer(RpcServerFactoryPBImpl.java:139)
    at org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC.getServer(HadoopYarnProtoRPC.java:65)
    at org.apache.hadoop.yarn.ipc.YarnRPC.getServer(YarnRPC.java:54)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.createServer(ResourceLocalizationService.java:356)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.serviceStar

NameNode:

2017-10-10 23:58:07,872 INFO org.apache.hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: 0.0.0.0:50090
    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.SecondaryNameNode.initialize(SecondaryNameNode.java:276)
    at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:192)
    at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:671)

DataNode:

java.net.BindException: Problem binding to [0.0.0.0:50010] java.net.BindException: Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

On trying netstat -ntpl command the below ports are in already in use

tcp        0      0 0.0.0.0:50010           0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:50090           0.0.0.0:*               LISTEN      -             
tcp6       0      0 :::8040                 :::*                    LISTEN      -           

Please someone suggest me how to kill these ports to resolve this issue.

:~/hadoopinstall/hadoop-2.6.0$ jps
18255 org.eclipse.equinox.launcher_1.3.0.dist.jar
27492 RunJar
12387 Jps
11951 ResourceManager
11469 NameNode

Copyright License:
Author:「Murali krishna Konduru」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/46873059/unable-to-start-secondarynamenode-datanode-nodemanager-while-starting-hadoop

About “Unable to start secondarynamenode, datanode, nodemanager while starting hadoop” questions

I am using Hadoop hadoop-2.6.0, while starting hadoop services unable to start secondarynamenode, datanode, nodemanager services. Getting Java.net.bind exceptions. NodeManager: org.apache.hadoop....
Curently, I have installed Hadoop in my Ubuntu system. And I started it. Here are the details: krish@krish-VirtualBox:~$ start-dfs.sh 14/10/20 13:16:16 WARN util.NativeCodeLoader: Unable to load n...
i am using hadoop and it was working fine. but today when i restarted the server, now jps command is showing something like 9801 NameNode 12142 Jps 10207 SecondaryNameNode i have reconfigured the...
I'm trying to install Hadoop 2.2.0 on a Single Node Cluster on my computer using this tutorial http://codesfusion.blogspot.gr/2013/10/setup-hadoop-2x-220-on-ubuntu.html?m=1 . I follow every instruc...
pc83@pc83-ThinkCentre-M92p:~$ start-all.sh This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh 15/10/12 13:24:26 WARN util.NativeCodeLoader: Unable to load native-hadoop library for
I've installed Hadoop 2.6.0 in single-node mode on Ubuntu 15.10 VM. When I start Hadoop with the command ./start-all.sh all it works but when i launch Jps command I view 31602 NameNode 32453 Jps...
I have installed hadoop in Ubuntu and created the dir for namenode and data node. But I ma not able to see the namnode and data node is not running. hduser@sanjeebpanda:/usr/local/hadoop/etc/hadoo...
when i start hadoop using start-all.sh after that datanode and secondarynamenode not up on server and on slave datanode not starting. when i troubleshoot using hdfs datanode get this error 15...
Trying to Run Hadoop on Local Server but Unable to do so. Getting Error when running command ./start-dfs.sh 17/08/25 11:58:08 WARN util.NativeCodeLoader: Unable to load native-hadoop library for ...
hadoop1@xyzfsdemo:/usr/local/hadoop$ sbin/start-all.shThis script is Deprecated. Instead use start-dfs.sh and start-yarn.sh Starting namenodes on [localhost] localhost: starting namenode, logging t...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.