Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # dev - Getting address bind Exception when starting single node hadoop cluster


Copy link to this message
-
Re: Getting address bind Exception when starting single node hadoop cluster
Steve Loughran 2012-05-24, 08:12
1. This is a user question, so please use the common-user or mapreduce-user
mailing lists. There are more people on it and it is the better place.

2. Before panicing and asking others for help, always try and do a bit of
research. The stack trace says the cause is BindException and "Address
already in use". Why not search for these terms and see what pages cover
this issue?

This may seem an unhelpful answer but the action describe in #2 is exactly
what everyone else will do -not dive into the code, not panic, but try and
understand what the error message means, and so how to fix it

On 24 May 2012 08:12, kripal kashyav <[EMAIL PROTECTED]> wrote:

> Hi!
> I am trying to set up hadoop 1.0.2 for single node.
> After starting it, when i execute jps command i get the following :
> NameNode
> 13478 Jps
> 13187 SecondaryNameNode
>
> In log files i get the following errors for tasktracker :
> 12-05-24 12:39:21,268 ERROR
> org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException
> as:hduser cause:org.apache.hadoop.ipc.RemoteException: java.io.IOException:
> Unknown protocol to name node:
> org.apache.hadoop.mapred.InterTrackerProtocol
>        at
>
> org.apache.hadoop.hdfs.server.namenode.NameNode.getProtocolVersion(NameNode.java:149)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
>        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
>        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at javax.security.auth.Subject.doAs(Subject.java:396)
>        at
>
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
>        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
>
> 2012-05-24 12:39:21,268 ERROR org.apache.hadoop.mapred.TaskTracker: Can not
> start task tracker because org.apache.hadoop.ipc.RemoteException:
> java.io.IOException: Unknown protocol to name node:
> org.apache.hadoop.mapred.InterTrackerProtocol
>        at
>
> org.apache.hadoop.hdfs.server.namenode.NameNode.getProtocolVersion(NameNode.java:149)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
>        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
>        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at javax.security.auth.Subject.doAs(Subject.java:396)
>        at
>
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
>        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
>
>        at org.apache.hadoop.ipc.Client.call(Client.java:1066)
>        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
>        at org.apache.hadoop.mapred.$Proxy5.getProtocolVersion(Unknown
> Source)
>        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
>        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:370)
>        at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:429)
>        at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:331)
>        at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:296)
>        at org.apache.hadoop.mapr
>
> And following error for jobtracker :
>  FATAL org.apache.hadoop.mapred.JobTracker: java.net.BindException: Problem
> binding to localhost/127.0.0.1:6500 : Address already in use