You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Snehal Patel <sn...@gmail.com> on 2006/03/03 06:28:53 UTC

datanode java.net.SocketException

hi.  i'm trying to get hadoop running in the pseudo distributed
configuration and have checked out the latest code and used the instructions
located in the API:
http://lucene.apache.org/hadoop/docs/api/overview-summary.html

when i execute start-all.sh, the console output displays socket exceptions.
does anyone know what may be going on.  seems like the data node is having
issues connecting to the namenode.  i tried starting the namenode first
which works, and then starting the datanode but it can't seem to send a
heartbeat to the namenode in this single node configuration.  i also tried
running the commands as root.  the output is below:

localhost: starting datanode, logging to
/home/spatel/workspace/hadoop/bin/../logs/hadoop-
spatel-datanode-localhost.localdomain.log
localhost: 060303 001830 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-default.xml
localhost: 060303 001830 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-site.xml
localhost: name node addr: localhost/127.0.0.1:9000
localhost: 060303 001830 Opened server at 50010
localhost: LOCALNAME: localhost.localdomain:50010
localhost: 060303 001830 Starting DataNode in: /tmp/hadoop/dfs/data/data
localhost: 060303 001830 using BLOCKREPORT_INTERVAL of 3306830msec
localhost: 060303 001830 Exception: java.net.SocketException: Invalid
argument or cannot assign requested address
localhost: 060303 001830 Lost connection to namenode.  Retrying...
starting namenode, logging to
/home/spatel/workspace/hadoop/bin/../logs/hadoop-
spatel-namenode-localhost.localdomain.log
060303 001831 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
default.xml
060303 001831 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
site.xml
060303 001831 Server listener on port 9000: starting
060303 001831 Server handler 0 on 9000: starting
060303 001831 Server handler 1 on 9000: starting
060303 001831 Server handler 2 on 9000: starting
060303 001831 Server handler 3 on 9000: starting
060303 001831 Server handler 4 on 9000: starting
060303 001831 Server handler 5 on 9000: starting
060303 001831 Server handler 6 on 9000: starting
starting jobtracker, logging to
/home/spatel/workspace/hadoop/bin/../logs/hadoop-
spatel-jobtracker-localhost.localdomain.log
060303 001832 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
default.xml
060303 001832 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
site.xml
060303 001832 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
default.xml
060303 001832 parsing file:/home/spatel/workspace/hadoop/conf/mapred-
default.xml
060303 001832 parsing file:/home/spatel/workspace/hadoop/conf/hadoop-
site.xml
060303 001833 Starting tracker
java.net.SocketException: Invalid argument or cannot assign requested
address
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java
:171)
localhost: starting tasktracker, logging to
/home/spatel/workspace/hadoop/bin/../logs/hadoop-
spatel-tasktracker-localhost.localdomain.log
localhost: 060303 001834 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-default.xml
localhost: 060303 001834 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-site.xml
localhost: 060303 001834 Starting tracker tracker_99659
localhost: 060303 001834 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-default.xml
localhost: 060303 001834 parsing
file:/home/spatel/workspace/hadoop/conf/mapred-default.xml
localhost: 060303 001834 parsing
file:/home/spatel/workspace/hadoop/conf/hadoop-site.xml
localhost: 060303 001835 Server listener on port 50050: starting
localhost: 060303 001835 Server handler 0 on 50050: starting
localhost: 060303 001835 Server handler 1 on 50050: starting
localhost: 060303 001835 Server listener on port 50040: starting
[

Re: datanode java.net.SocketException

Posted by Snehal <sn...@gmail.com>.
using java 1.5 worked

On 3/3/06, Snehal <sn...@gmail.com> wrote:
>
>
> thx marko.  i'm using java 1.4.2_10 (fedora core v. 4 and linux v. 2.6.11).
> i'll try using java 1.5 and see what happens.
>
>
> On 3/3/06, Marko Bauhardt <mb...@media-style.com> wrote:
> >
> >
> > Am 03.03.2006 um 06:28 schrieb Snehal Patel:
> >
> > > localhost: 060303 001830 Exception: java.net.SocketException : Invalid
> > > argument or cannot assign requested address
> >
> > i have the same problem. If i export
> >
> > HADOOP_OPTS="-Djava.net.preferIPv4Stack=true"
> >
> > then the datanodes works but my tasktrackers fails.
> > I have some boxes with java1.4 and boxes with java5. The boxes with
> > java5 works correct but the other boxes throws this SocketException.
> >
> > What for a java version do you have installed?
> >
> >
> > Marko
> >
> >
> >
> >
>

Re: datanode java.net.SocketException

Posted by Snehal <sn...@gmail.com>.
thx marko.  i'm using java 1.4.2_10 (fedora core v. 4 and linux v. 2.6.11).
i'll try using java 1.5 and see what happens.


On 3/3/06, Marko Bauhardt <mb...@media-style.com> wrote:
>
>
> Am 03.03.2006 um 06:28 schrieb Snehal Patel:
>
> > localhost: 060303 001830 Exception: java.net.SocketException: Invalid
> > argument or cannot assign requested address
>
> i have the same problem. If i export
>
> HADOOP_OPTS="-Djava.net.preferIPv4Stack=true"
>
> then the datanodes works but my tasktrackers fails.
> I have some boxes with java1.4 and boxes with java5. The boxes with
> java5 works correct but the other boxes throws this SocketException.
>
> What for a java version do you have installed?
>
>
> Marko
>
>
>
>

Re: datanode java.net.SocketException

Posted by Marko Bauhardt <mb...@media-style.com>.
Am 03.03.2006 um 06:28 schrieb Snehal Patel:

> localhost: 060303 001830 Exception: java.net.SocketException: Invalid
> argument or cannot assign requested address

  i have the same problem. If i export

HADOOP_OPTS="-Djava.net.preferIPv4Stack=true"

then the datanodes works but my tasktrackers fails.
I have some boxes with java1.4 and boxes with java5. The boxes with  
java5 works correct but the other boxes throws this SocketException.

What for a java version do you have installed?


Marko