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 Boyu Zhang <bo...@gmail.com> on 2009/07/15 21:57:11 UTC
Datanode Cannot Connect To The Server
Dear all,
I am trying to set up a cluster of two machines using Hadoop. One machine is
both namenode and jobtracker, the other machine is the datanode and
tasktracker.
I set up passwd-less ssh both directions.
The comments I used are:
> bin/hadoop namenode -format
> bin/start-dfs.sh
starting namenode, logging to /data/zhang/hadoop/bin/../
logs/hadoop-zhang-namenode-norway.out
datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
datanode, logging to
/data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
secondarynamenode, logging to
/data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
But when I check out the log files on the datanode machine, I got the
following error:
2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying connect
to server:namenode-machine name:port. Already tried 2 time(s).
And I the datanode cannot connect to the namenode, I cannot operate on the
hdfs.
Could anyone can help me out?
Thanks a lot!
Boyu
Re: Datanode Cannot Connect To The Server
Posted by Divij Durve <di...@gmail.com>.
No i had no problem at all it works perfectly.
On Wed, Jul 15, 2009 at 7:14 PM, Boyu Zhang <bo...@gmail.com> wrote:
> I just tried the version 0.20.0 and I followed the link.
> I can get pseudo distributed version started, but I still cannot get the
> cluster started.
>
> It is the same error. The datanode cannot connect to the namenode, and the
> task tracker cannot connect to the job tracker. I start to think that maybe
> the network ports are blocked somehow. Did you have the same problems when
> you set up the cluster?
>
> Thanks a lot!
>
> On Wed, Jul 15, 2009 at 4:41 PM, Divij Durve <di...@gmail.com> wrote:
>
> > Ya i agree i was using a lower version and it was a lot of trouble to get
> > things to work. It took quite a lot of effort to get anything going. with
> > 0.20.0 i got it up and running in about 20 min
> >
> >
> > On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com>
> wrote:
> >
> > > I am using the version 0.18.3 right now, the configurations files you
> > > mentioned are available in the version 0.20. Anyway, I will try the
> > version
> > > 0.20, this version now is just painful, thanks a lot!
> > >
> > >
> > > On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com>
> > wrote:
> > >
> > > > instead of using hadoop-site.xml try using the individual .xml files
> > > > *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> > > > It might help. I used hadoop-site.xml and had a lot of trouble with
> it.
> > I
> > > > moved on and used these and everything is working now.
> > > >
> > > >
> > > >
> > >
> >
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configuration
> > > >
> > > > thats a link to the site that should be useful. its the cluster
> setup
> > > just
> > > > follow it carefully and u should be good to go.
> > > >
> > > > *
> > > > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com>
> > > wrote:
> > > >
> > > > > Thank you Divij,
> > > > >
> > > > > The port I used on the nameserver and on the slave is the same:
> 1111.
> > > > > Actually, the hadoop-site.xml is the same one on both machines. is
> > that
> > > > > correct? Thanks a lot!
> > > > >
> > > > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <divij.tech@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > u might want to have a look at the port that is being used on the
> > > > server
> > > > > > and
> > > > > > the port that the slave is trying to communicate on.
> > > > > >
> > > > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <
> boyuzhang35@gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > > Dear all,
> > > > > > >
> > > > > > > I am trying to set up a cluster of two machines using Hadoop.
> One
> > > > > machine
> > > > > > > is
> > > > > > > both namenode and jobtracker, the other machine is the datanode
> > and
> > > > > > > tasktracker.
> > > > > > >
> > > > > > > I set up passwd-less ssh both directions.
> > > > > > >
> > > > > > >
> > > > > > > The comments I used are:
> > > > > > > > bin/hadoop namenode -format
> > > > > > > > bin/start-dfs.sh
> > > > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > starting
> > > > > > > datanode, logging to
> > > > > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > starting
> > > > > > > secondarynamenode, logging to
> > > > > > >
> > > > >
> > >
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > > > >
> > > > > > >
> > > > > > > But when I check out the log files on the datanode machine, I
> got
> > > the
> > > > > > > following error:
> > > > > > >
> > > > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client:
> > Retrying
> > > > > > connect
> > > > > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > > > > >
> > > > > > >
> > > > > > > And I the datanode cannot connect to the namenode, I cannot
> > operate
> > > > on
> > > > > > the
> > > > > > > hdfs.
> > > > > > >
> > > > > > > Could anyone can help me out?
> > > > > > > Thanks a lot!
> > > > > > >
> > > > > > >
> > > > > > > Boyu
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
Thank you for the reply.
My problem has been solved. It is the problem with firewall. The firewall
blocks all the initiate connection request from other machines, I stop the
firewall and everything works fine. I really should check that at the
beginning.
Thank you all so much for replying.
Boyu
On Fri, Jul 17, 2009 at 1:55 AM, jason hadoop <ja...@gmail.com>wrote:
> If your namenode is not binding to the ethernet port address, but only to
> the localhost, your datanode will never be able to connect to it.
>
> I vaguely remember that if the hostname of the node is found on the
> localhost line in /etc/hosts, that this may happen.
>
> On Thu, Jul 16, 2009 at 1:54 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
> > Thank you for your suggestion.
> >
> > I have done that plenty of times, and every time I delete the pids and
> the
> > files /tmp/hadoop-name that namenode formate genrated. But I got the same
> > error over and over.
> >
> >
> > I found out that after I start-dfs.sh, I check the netstat -pnl(from the
> > master), there is a process listening on port 9000 with local address
> > 127.0.0.2. But in the log file of the failed data node , it kept trying
> to
> > connect to IP:9000 where IP is the actual IP of the master machine. And I
> > tried to use IP address in stead of machine name, still not work. I am
> > still
> > trying to figure out why. It seems that not lots of people are having
> this
> > problem, but I keep getting this error.
> >
> >
> > Thanks a lot!
> >
> >
> > On Thu, Jul 16, 2009 at 11:15 AM, zhang jianfeng <zj...@gmail.com>
> wrote:
> >
> > > It seems that your datanode is dead. My suggestion is that you can
> > reformat
> > > the namenode, and restart the cluster.
> > >
> >
>
>
>
> --
> Pro Hadoop, a book to guide you from beginner to hadoop mastery,
> http://www.amazon.com/dp/1430219424?tag=jewlerymall
> www.prohadoopbook.com a community for Hadoop Professionals
>
Re: Datanode Cannot Connect To The Server
Posted by jason hadoop <ja...@gmail.com>.
If your namenode is not binding to the ethernet port address, but only to
the localhost, your datanode will never be able to connect to it.
I vaguely remember that if the hostname of the node is found on the
localhost line in /etc/hosts, that this may happen.
On Thu, Jul 16, 2009 at 1:54 PM, Boyu Zhang <bo...@gmail.com> wrote:
> Thank you for your suggestion.
>
> I have done that plenty of times, and every time I delete the pids and the
> files /tmp/hadoop-name that namenode formate genrated. But I got the same
> error over and over.
>
>
> I found out that after I start-dfs.sh, I check the netstat -pnl(from the
> master), there is a process listening on port 9000 with local address
> 127.0.0.2. But in the log file of the failed data node , it kept trying to
> connect to IP:9000 where IP is the actual IP of the master machine. And I
> tried to use IP address in stead of machine name, still not work. I am
> still
> trying to figure out why. It seems that not lots of people are having this
> problem, but I keep getting this error.
>
>
> Thanks a lot!
>
>
> On Thu, Jul 16, 2009 at 11:15 AM, zhang jianfeng <zj...@gmail.com> wrote:
>
> > It seems that your datanode is dead. My suggestion is that you can
> reformat
> > the namenode, and restart the cluster.
> >
>
--
Pro Hadoop, a book to guide you from beginner to hadoop mastery,
http://www.amazon.com/dp/1430219424?tag=jewlerymall
www.prohadoopbook.com a community for Hadoop Professionals
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
Thank you for your suggestion.
I have done that plenty of times, and every time I delete the pids and the
files /tmp/hadoop-name that namenode formate genrated. But I got the same
error over and over.
I found out that after I start-dfs.sh, I check the netstat -pnl(from the
master), there is a process listening on port 9000 with local address
127.0.0.2. But in the log file of the failed data node , it kept trying to
connect to IP:9000 where IP is the actual IP of the master machine. And I
tried to use IP address in stead of machine name, still not work. I am still
trying to figure out why. It seems that not lots of people are having this
problem, but I keep getting this error.
Thanks a lot!
On Thu, Jul 16, 2009 at 11:15 AM, zhang jianfeng <zj...@gmail.com> wrote:
> It seems that your datanode is dead. My suggestion is that you can reformat
> the namenode, and restart the cluster.
>
Re: Datanode Cannot Connect To The Server
Posted by zhang jianfeng <zj...@gmail.com>.
It seems that your datanode is dead. My suggestion is that you can reformat
the namenode, and restart the cluster.
2009/7/16 Boyu Zhang <bo...@gmail.com>
> Thanks for your reply.
>
> I am working on the namenode master machine, and SSH to all the other
> machines. Yes, I can ping the master node from the slave node, it works
> fine.
>
> And I don't know how to open task web UI on the slave. I can open the
> namenode web UI from the master node, it said : There are no datanodes in
> the cluster .
>
> When I check out the log file on the slave machine, the namenode--.log, I
> got the following error:
>
> --------------------------------------------------------------------------------------------------------------------
> 2009-07-16 10:42:32,228 INFO org.apache.hadoop.ipc.Client: Retrying connect
> to server: machine name/IP address:9000. Already tried 0 time(s).
>
> ------------------------------------------------------------------------------------------------------------------
>
> When I stop-dfs.sh
> ---------------------------------------------------------
> stopping namenode
> machine name: stopping datanode
> localhost: stopping secondarynamenode
> ----------------------------------------------------------
>
> And for simplicity, my configuration files for the cluster are the same
> ones
> for the pseudo distributed mode(work fine), only changes "localhost" to the
> actual machien names.
>
>
> Thanks a lot!
>
> 2009/7/16 zjffdu <zj...@gmail.com>
>
> > Boyu,
> >
> > Can you ping the master node from the slave node ? And can you open task
> > web
> > UI on the slave ?
> >
> >
> > Jeff Zhang
> >
> >
> >
> > -----Original Message-----
> > From: Boyu Zhang [mailto:boyuzhang35@gmail.com]
> > Sent: 2009年7月15日 16:15
> > To: common-user@hadoop.apache.org
> > Subject: Re: Datanode Cannot Connect To The Server
> >
> > I just tried the version 0.20.0 and I followed the link.
> > I can get pseudo distributed version started, but I still cannot get the
> > cluster started.
> >
> > It is the same error. The datanode cannot connect to the namenode, and
> the
> > task tracker cannot connect to the job tracker. I start to think that
> maybe
> > the network ports are blocked somehow. Did you have the same problems
> when
> > you set up the cluster?
> >
> > Thanks a lot!
> >
> > On Wed, Jul 15, 2009 at 4:41 PM, Divij Durve <di...@gmail.com>
> wrote:
> >
> > > Ya i agree i was using a lower version and it was a lot of trouble to
> get
> > > things to work. It took quite a lot of effort to get anything going.
> with
> > > 0.20.0 i got it up and running in about 20 min
> > >
> > >
> > > On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com>
> > wrote:
> > >
> > > > I am using the version 0.18.3 right now, the configurations files you
> > > > mentioned are available in the version 0.20. Anyway, I will try the
> > > version
> > > > 0.20, this version now is just painful, thanks a lot!
> > > >
> > > >
> > > > On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com>
> > > wrote:
> > > >
> > > > > instead of using hadoop-site.xml try using the individual .xml
> files
> > > > > *conf/core-site.xml*, *conf/hdfs-site.xml* and
> *conf/mapred-site.xml
> > > > > It might help. I used hadoop-site.xml and had a lot of trouble with
> > it.
> > > I
> > > > > moved on and used these and everything is working now.
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configura
> > tion
> > > > >
> > > > > thats a link to the site that should be useful. its the cluster
> > setup
> > > > just
> > > > > follow it carefully and u should be good to go.
> > > > >
> > > > > *
> > > > > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <boyuzhang35@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > Thank you Divij,
> > > > > >
> > > > > > The port I used on the nameserver and on the slave is the same:
> > 1111.
> > > > > > Actually, the hadoop-site.xml is the same one on both machines.
> is
> > > that
> > > > > > correct? Thanks a lot!
> > > > > >
> > > > > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <
> divij.tech@gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > > u might want to have a look at the port that is being used on
> the
> > > > > server
> > > > > > > and
> > > > > > > the port that the slave is trying to communicate on.
> > > > > > >
> > > > > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <
> > boyuzhang35@gmail.com
> > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > > Dear all,
> > > > > > > >
> > > > > > > > I am trying to set up a cluster of two machines using Hadoop.
> > One
> > > > > > machine
> > > > > > > > is
> > > > > > > > both namenode and jobtracker, the other machine is the
> datanode
> > > and
> > > > > > > > tasktracker.
> > > > > > > >
> > > > > > > > I set up passwd-less ssh both directions.
> > > > > > > >
> > > > > > > >
> > > > > > > > The comments I used are:
> > > > > > > > > bin/hadoop namenode -format
> > > > > > > > > bin/start-dfs.sh
> > > > > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > > starting
> > > > > > > > datanode, logging to
> > > > > > > >
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > > starting
> > > > > > > > secondarynamenode, logging to
> > > > > > > >
> > > > > >
> > > >
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > > > > >
> > > > > > > >
> > > > > > > > But when I check out the log files on the datanode machine, I
> > got
> > > > the
> > > > > > > > following error:
> > > > > > > >
> > > > > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client:
> > > Retrying
> > > > > > > connect
> > > > > > > > to server:namenode-machine name:port. Already tried 2
> time(s).
> > > > > > > >
> > > > > > > >
> > > > > > > > And I the datanode cannot connect to the namenode, I cannot
> > > operate
> > > > > on
> > > > > > > the
> > > > > > > > hdfs.
> > > > > > > >
> > > > > > > > Could anyone can help me out?
> > > > > > > > Thanks a lot!
> > > > > > > >
> > > > > > > >
> > > > > > > > Boyu
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
Thanks for your reply.
I am working on the namenode master machine, and SSH to all the other
machines. Yes, I can ping the master node from the slave node, it works
fine.
And I don't know how to open task web UI on the slave. I can open the
namenode web UI from the master node, it said : There are no datanodes in
the cluster .
When I check out the log file on the slave machine, the namenode--.log, I
got the following error:
--------------------------------------------------------------------------------------------------------------------
2009-07-16 10:42:32,228 INFO org.apache.hadoop.ipc.Client: Retrying connect
to server: machine name/IP address:9000. Already tried 0 time(s).
------------------------------------------------------------------------------------------------------------------
When I stop-dfs.sh
---------------------------------------------------------
stopping namenode
machine name: stopping datanode
localhost: stopping secondarynamenode
----------------------------------------------------------
And for simplicity, my configuration files for the cluster are the same ones
for the pseudo distributed mode(work fine), only changes "localhost" to the
actual machien names.
Thanks a lot!
2009/7/16 zjffdu <zj...@gmail.com>
> Boyu,
>
> Can you ping the master node from the slave node ? And can you open task
> web
> UI on the slave ?
>
>
> Jeff Zhang
>
>
>
> -----Original Message-----
> From: Boyu Zhang [mailto:boyuzhang35@gmail.com]
> Sent: 2009年7月15日 16:15
> To: common-user@hadoop.apache.org
> Subject: Re: Datanode Cannot Connect To The Server
>
> I just tried the version 0.20.0 and I followed the link.
> I can get pseudo distributed version started, but I still cannot get the
> cluster started.
>
> It is the same error. The datanode cannot connect to the namenode, and the
> task tracker cannot connect to the job tracker. I start to think that maybe
> the network ports are blocked somehow. Did you have the same problems when
> you set up the cluster?
>
> Thanks a lot!
>
> On Wed, Jul 15, 2009 at 4:41 PM, Divij Durve <di...@gmail.com> wrote:
>
> > Ya i agree i was using a lower version and it was a lot of trouble to get
> > things to work. It took quite a lot of effort to get anything going. with
> > 0.20.0 i got it up and running in about 20 min
> >
> >
> > On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com>
> wrote:
> >
> > > I am using the version 0.18.3 right now, the configurations files you
> > > mentioned are available in the version 0.20. Anyway, I will try the
> > version
> > > 0.20, this version now is just painful, thanks a lot!
> > >
> > >
> > > On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com>
> > wrote:
> > >
> > > > instead of using hadoop-site.xml try using the individual .xml files
> > > > *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> > > > It might help. I used hadoop-site.xml and had a lot of trouble with
> it.
> > I
> > > > moved on and used these and everything is working now.
> > > >
> > > >
> > > >
> > >
> >
>
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configura
> tion
> > > >
> > > > thats a link to the site that should be useful. its the cluster
> setup
> > > just
> > > > follow it carefully and u should be good to go.
> > > >
> > > > *
> > > > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com>
> > > wrote:
> > > >
> > > > > Thank you Divij,
> > > > >
> > > > > The port I used on the nameserver and on the slave is the same:
> 1111.
> > > > > Actually, the hadoop-site.xml is the same one on both machines. is
> > that
> > > > > correct? Thanks a lot!
> > > > >
> > > > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <divij.tech@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > u might want to have a look at the port that is being used on the
> > > > server
> > > > > > and
> > > > > > the port that the slave is trying to communicate on.
> > > > > >
> > > > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <
> boyuzhang35@gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > > Dear all,
> > > > > > >
> > > > > > > I am trying to set up a cluster of two machines using Hadoop.
> One
> > > > > machine
> > > > > > > is
> > > > > > > both namenode and jobtracker, the other machine is the datanode
> > and
> > > > > > > tasktracker.
> > > > > > >
> > > > > > > I set up passwd-less ssh both directions.
> > > > > > >
> > > > > > >
> > > > > > > The comments I used are:
> > > > > > > > bin/hadoop namenode -format
> > > > > > > > bin/start-dfs.sh
> > > > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > starting
> > > > > > > datanode, logging to
> > > > > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > > starting
> > > > > > > secondarynamenode, logging to
> > > > > > >
> > > > >
> > >
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > > > >
> > > > > > >
> > > > > > > But when I check out the log files on the datanode machine, I
> got
> > > the
> > > > > > > following error:
> > > > > > >
> > > > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client:
> > Retrying
> > > > > > connect
> > > > > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > > > > >
> > > > > > >
> > > > > > > And I the datanode cannot connect to the namenode, I cannot
> > operate
> > > > on
> > > > > > the
> > > > > > > hdfs.
> > > > > > >
> > > > > > > Could anyone can help me out?
> > > > > > > Thanks a lot!
> > > > > > >
> > > > > > >
> > > > > > > Boyu
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
RE: Datanode Cannot Connect To The Server
Posted by zjffdu <zj...@gmail.com>.
Boyu,
Can you ping the master node from the slave node ? And can you open task web
UI on the slave ?
Jeff Zhang
-----Original Message-----
From: Boyu Zhang [mailto:boyuzhang35@gmail.com]
Sent: 2009年7月15日 16:15
To: common-user@hadoop.apache.org
Subject: Re: Datanode Cannot Connect To The Server
I just tried the version 0.20.0 and I followed the link.
I can get pseudo distributed version started, but I still cannot get the
cluster started.
It is the same error. The datanode cannot connect to the namenode, and the
task tracker cannot connect to the job tracker. I start to think that maybe
the network ports are blocked somehow. Did you have the same problems when
you set up the cluster?
Thanks a lot!
On Wed, Jul 15, 2009 at 4:41 PM, Divij Durve <di...@gmail.com> wrote:
> Ya i agree i was using a lower version and it was a lot of trouble to get
> things to work. It took quite a lot of effort to get anything going. with
> 0.20.0 i got it up and running in about 20 min
>
>
> On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
> > I am using the version 0.18.3 right now, the configurations files you
> > mentioned are available in the version 0.20. Anyway, I will try the
> version
> > 0.20, this version now is just painful, thanks a lot!
> >
> >
> > On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com>
> wrote:
> >
> > > instead of using hadoop-site.xml try using the individual .xml files
> > > *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> > > It might help. I used hadoop-site.xml and had a lot of trouble with
it.
> I
> > > moved on and used these and everything is working now.
> > >
> > >
> > >
> >
>
http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configura
tion
> > >
> > > thats a link to the site that should be useful. its the cluster setup
> > just
> > > follow it carefully and u should be good to go.
> > >
> > > *
> > > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com>
> > wrote:
> > >
> > > > Thank you Divij,
> > > >
> > > > The port I used on the nameserver and on the slave is the same:
1111.
> > > > Actually, the hadoop-site.xml is the same one on both machines. is
> that
> > > > correct? Thanks a lot!
> > > >
> > > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com>
> > > wrote:
> > > >
> > > > > u might want to have a look at the port that is being used on the
> > > server
> > > > > and
> > > > > the port that the slave is trying to communicate on.
> > > > >
> > > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <boyuzhang35@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > Dear all,
> > > > > >
> > > > > > I am trying to set up a cluster of two machines using Hadoop.
One
> > > > machine
> > > > > > is
> > > > > > both namenode and jobtracker, the other machine is the datanode
> and
> > > > > > tasktracker.
> > > > > >
> > > > > > I set up passwd-less ssh both directions.
> > > > > >
> > > > > >
> > > > > > The comments I used are:
> > > > > > > bin/hadoop namenode -format
> > > > > > > bin/start-dfs.sh
> > > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > starting
> > > > > > datanode, logging to
> > > > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > starting
> > > > > > secondarynamenode, logging to
> > > > > >
> > > >
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > > >
> > > > > >
> > > > > > But when I check out the log files on the datanode machine, I
got
> > the
> > > > > > following error:
> > > > > >
> > > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client:
> Retrying
> > > > > connect
> > > > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > > > >
> > > > > >
> > > > > > And I the datanode cannot connect to the namenode, I cannot
> operate
> > > on
> > > > > the
> > > > > > hdfs.
> > > > > >
> > > > > > Could anyone can help me out?
> > > > > > Thanks a lot!
> > > > > >
> > > > > >
> > > > > > Boyu
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
I just tried the version 0.20.0 and I followed the link.
I can get pseudo distributed version started, but I still cannot get the
cluster started.
It is the same error. The datanode cannot connect to the namenode, and the
task tracker cannot connect to the job tracker. I start to think that maybe
the network ports are blocked somehow. Did you have the same problems when
you set up the cluster?
Thanks a lot!
On Wed, Jul 15, 2009 at 4:41 PM, Divij Durve <di...@gmail.com> wrote:
> Ya i agree i was using a lower version and it was a lot of trouble to get
> things to work. It took quite a lot of effort to get anything going. with
> 0.20.0 i got it up and running in about 20 min
>
>
> On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
> > I am using the version 0.18.3 right now, the configurations files you
> > mentioned are available in the version 0.20. Anyway, I will try the
> version
> > 0.20, this version now is just painful, thanks a lot!
> >
> >
> > On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com>
> wrote:
> >
> > > instead of using hadoop-site.xml try using the individual .xml files
> > > *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> > > It might help. I used hadoop-site.xml and had a lot of trouble with it.
> I
> > > moved on and used these and everything is working now.
> > >
> > >
> > >
> >
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configuration
> > >
> > > thats a link to the site that should be useful. its the cluster setup
> > just
> > > follow it carefully and u should be good to go.
> > >
> > > *
> > > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com>
> > wrote:
> > >
> > > > Thank you Divij,
> > > >
> > > > The port I used on the nameserver and on the slave is the same: 1111.
> > > > Actually, the hadoop-site.xml is the same one on both machines. is
> that
> > > > correct? Thanks a lot!
> > > >
> > > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com>
> > > wrote:
> > > >
> > > > > u might want to have a look at the port that is being used on the
> > > server
> > > > > and
> > > > > the port that the slave is trying to communicate on.
> > > > >
> > > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <boyuzhang35@gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > Dear all,
> > > > > >
> > > > > > I am trying to set up a cluster of two machines using Hadoop. One
> > > > machine
> > > > > > is
> > > > > > both namenode and jobtracker, the other machine is the datanode
> and
> > > > > > tasktracker.
> > > > > >
> > > > > > I set up passwd-less ssh both directions.
> > > > > >
> > > > > >
> > > > > > The comments I used are:
> > > > > > > bin/hadoop namenode -format
> > > > > > > bin/start-dfs.sh
> > > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > starting
> > > > > > datanode, logging to
> > > > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> > starting
> > > > > > secondarynamenode, logging to
> > > > > >
> > > >
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > > >
> > > > > >
> > > > > > But when I check out the log files on the datanode machine, I got
> > the
> > > > > > following error:
> > > > > >
> > > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client:
> Retrying
> > > > > connect
> > > > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > > > >
> > > > > >
> > > > > > And I the datanode cannot connect to the namenode, I cannot
> operate
> > > on
> > > > > the
> > > > > > hdfs.
> > > > > >
> > > > > > Could anyone can help me out?
> > > > > > Thanks a lot!
> > > > > >
> > > > > >
> > > > > > Boyu
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Divij Durve <di...@gmail.com>.
Ya i agree i was using a lower version and it was a lot of trouble to get
things to work. It took quite a lot of effort to get anything going. with
0.20.0 i got it up and running in about 20 min
On Wed, Jul 15, 2009 at 4:24 PM, Boyu Zhang <bo...@gmail.com> wrote:
> I am using the version 0.18.3 right now, the configurations files you
> mentioned are available in the version 0.20. Anyway, I will try the version
> 0.20, this version now is just painful, thanks a lot!
>
>
> On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com> wrote:
>
> > instead of using hadoop-site.xml try using the individual .xml files
> > *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> > It might help. I used hadoop-site.xml and had a lot of trouble with it. I
> > moved on and used these and everything is working now.
> >
> >
> >
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configuration
> >
> > thats a link to the site that should be useful. its the cluster setup
> just
> > follow it carefully and u should be good to go.
> >
> > *
> > On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com>
> wrote:
> >
> > > Thank you Divij,
> > >
> > > The port I used on the nameserver and on the slave is the same: 1111.
> > > Actually, the hadoop-site.xml is the same one on both machines. is that
> > > correct? Thanks a lot!
> > >
> > > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com>
> > wrote:
> > >
> > > > u might want to have a look at the port that is being used on the
> > server
> > > > and
> > > > the port that the slave is trying to communicate on.
> > > >
> > > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <bo...@gmail.com>
> > > wrote:
> > > >
> > > > > Dear all,
> > > > >
> > > > > I am trying to set up a cluster of two machines using Hadoop. One
> > > machine
> > > > > is
> > > > > both namenode and jobtracker, the other machine is the datanode and
> > > > > tasktracker.
> > > > >
> > > > > I set up passwd-less ssh both directions.
> > > > >
> > > > >
> > > > > The comments I used are:
> > > > > > bin/hadoop namenode -format
> > > > > > bin/start-dfs.sh
> > > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > > logs/hadoop-zhang-namenode-norway.out
> > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> starting
> > > > > datanode, logging to
> > > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>:
> starting
> > > > > secondarynamenode, logging to
> > > > >
> > >
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > > >
> > > > >
> > > > > But when I check out the log files on the datanode machine, I got
> the
> > > > > following error:
> > > > >
> > > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying
> > > > connect
> > > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > > >
> > > > >
> > > > > And I the datanode cannot connect to the namenode, I cannot operate
> > on
> > > > the
> > > > > hdfs.
> > > > >
> > > > > Could anyone can help me out?
> > > > > Thanks a lot!
> > > > >
> > > > >
> > > > > Boyu
> > > > >
> > > >
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
I am using the version 0.18.3 right now, the configurations files you
mentioned are available in the version 0.20. Anyway, I will try the version
0.20, this version now is just painful, thanks a lot!
On Wed, Jul 15, 2009 at 4:17 PM, Divij Durve <di...@gmail.com> wrote:
> instead of using hadoop-site.xml try using the individual .xml files
> *conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
> It might help. I used hadoop-site.xml and had a lot of trouble with it. I
> moved on and used these and everything is working now.
>
>
> http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configuration
>
> thats a link to the site that should be useful. its the cluster setup just
> follow it carefully and u should be good to go.
>
> *
> On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
> > Thank you Divij,
> >
> > The port I used on the nameserver and on the slave is the same: 1111.
> > Actually, the hadoop-site.xml is the same one on both machines. is that
> > correct? Thanks a lot!
> >
> > On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com>
> wrote:
> >
> > > u might want to have a look at the port that is being used on the
> server
> > > and
> > > the port that the slave is trying to communicate on.
> > >
> > > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <bo...@gmail.com>
> > wrote:
> > >
> > > > Dear all,
> > > >
> > > > I am trying to set up a cluster of two machines using Hadoop. One
> > machine
> > > > is
> > > > both namenode and jobtracker, the other machine is the datanode and
> > > > tasktracker.
> > > >
> > > > I set up passwd-less ssh both directions.
> > > >
> > > >
> > > > The comments I used are:
> > > > > bin/hadoop namenode -format
> > > > > bin/start-dfs.sh
> > > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > > logs/hadoop-zhang-namenode-norway.out
> > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > > > datanode, logging to
> > > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > > > secondarynamenode, logging to
> > > >
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > > >
> > > >
> > > > But when I check out the log files on the datanode machine, I got the
> > > > following error:
> > > >
> > > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying
> > > connect
> > > > to server:namenode-machine name:port. Already tried 2 time(s).
> > > >
> > > >
> > > > And I the datanode cannot connect to the namenode, I cannot operate
> on
> > > the
> > > > hdfs.
> > > >
> > > > Could anyone can help me out?
> > > > Thanks a lot!
> > > >
> > > >
> > > > Boyu
> > > >
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Divij Durve <di...@gmail.com>.
instead of using hadoop-site.xml try using the individual .xml files
*conf/core-site.xml*, *conf/hdfs-site.xml* and *conf/mapred-site.xml
It might help. I used hadoop-site.xml and had a lot of trouble with it. I
moved on and used these and everything is working now.
http://hadoop.apache.org/core/docs/current/cluster_setup.html#Site+Configuration
thats a link to the site that should be useful. its the cluster setup just
follow it carefully and u should be good to go.
*
On Wed, Jul 15, 2009 at 4:09 PM, Boyu Zhang <bo...@gmail.com> wrote:
> Thank you Divij,
>
> The port I used on the nameserver and on the slave is the same: 1111.
> Actually, the hadoop-site.xml is the same one on both machines. is that
> correct? Thanks a lot!
>
> On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com> wrote:
>
> > u might want to have a look at the port that is being used on the server
> > and
> > the port that the slave is trying to communicate on.
> >
> > On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <bo...@gmail.com>
> wrote:
> >
> > > Dear all,
> > >
> > > I am trying to set up a cluster of two machines using Hadoop. One
> machine
> > > is
> > > both namenode and jobtracker, the other machine is the datanode and
> > > tasktracker.
> > >
> > > I set up passwd-less ssh both directions.
> > >
> > >
> > > The comments I used are:
> > > > bin/hadoop namenode -format
> > > > bin/start-dfs.sh
> > > starting namenode, logging to /data/zhang/hadoop/bin/../
> > > logs/hadoop-zhang-namenode-norway.out
> > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > > datanode, logging to
> > > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > > secondarynamenode, logging to
> > >
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> > >
> > >
> > > But when I check out the log files on the datanode machine, I got the
> > > following error:
> > >
> > > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying
> > connect
> > > to server:namenode-machine name:port. Already tried 2 time(s).
> > >
> > >
> > > And I the datanode cannot connect to the namenode, I cannot operate on
> > the
> > > hdfs.
> > >
> > > Could anyone can help me out?
> > > Thanks a lot!
> > >
> > >
> > > Boyu
> > >
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Boyu Zhang <bo...@gmail.com>.
Thank you Divij,
The port I used on the nameserver and on the slave is the same: 1111.
Actually, the hadoop-site.xml is the same one on both machines. is that
correct? Thanks a lot!
On Wed, Jul 15, 2009 at 4:04 PM, Divij Durve <di...@gmail.com> wrote:
> u might want to have a look at the port that is being used on the server
> and
> the port that the slave is trying to communicate on.
>
> On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
> > Dear all,
> >
> > I am trying to set up a cluster of two machines using Hadoop. One machine
> > is
> > both namenode and jobtracker, the other machine is the datanode and
> > tasktracker.
> >
> > I set up passwd-less ssh both directions.
> >
> >
> > The comments I used are:
> > > bin/hadoop namenode -format
> > > bin/start-dfs.sh
> > starting namenode, logging to /data/zhang/hadoop/bin/../
> > logs/hadoop-zhang-namenode-norway.out
> > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > datanode, logging to
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> > datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> > secondarynamenode, logging to
> > /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
> >
> >
> > But when I check out the log files on the datanode machine, I got the
> > following error:
> >
> > 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying
> connect
> > to server:namenode-machine name:port. Already tried 2 time(s).
> >
> >
> > And I the datanode cannot connect to the namenode, I cannot operate on
> the
> > hdfs.
> >
> > Could anyone can help me out?
> > Thanks a lot!
> >
> >
> > Boyu
> >
>
Re: Datanode Cannot Connect To The Server
Posted by Divij Durve <di...@gmail.com>.
u might want to have a look at the port that is being used on the server and
the port that the slave is trying to communicate on.
On Wed, Jul 15, 2009 at 3:57 PM, Boyu Zhang <bo...@gmail.com> wrote:
> Dear all,
>
> I am trying to set up a cluster of two machines using Hadoop. One machine
> is
> both namenode and jobtracker, the other machine is the datanode and
> tasktracker.
>
> I set up passwd-less ssh both directions.
>
>
> The comments I used are:
> > bin/hadoop namenode -format
> > bin/start-dfs.sh
> starting namenode, logging to /data/zhang/hadoop/bin/../
> logs/hadoop-zhang-namenode-norway.out
> datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> datanode, logging to
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-datanode-sweden.out
> datanode-machine name <http://sweden.gcl.cis.udel.edu/>: starting
> secondarynamenode, logging to
> /data/zhang/hadoop/bin/../logs/hadoop-zhang-secondarynamenode-sweden.out
>
>
> But when I check out the log files on the datanode machine, I got the
> following error:
>
> 2009-07-15 15:45:54,226 INFO org.apache.hadoop.ipc.Client: Retrying connect
> to server:namenode-machine name:port. Already tried 2 time(s).
>
>
> And I the datanode cannot connect to the namenode, I cannot operate on the
> hdfs.
>
> Could anyone can help me out?
> Thanks a lot!
>
>
> Boyu
>