Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 44613 invoked from network); 17 Jul 2009 05:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 05:54:41 -0000 Received: (qmail 30508 invoked by uid 500); 17 Jul 2009 05:55:44 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 30399 invoked by uid 500); 17 Jul 2009 05:55:43 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 30389 invoked by uid 99); 17 Jul 2009 05:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 05:55:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.hadoop@gmail.com designates 209.85.212.188 as permitted sender) Received: from [209.85.212.188] (HELO mail-vw0-f188.google.com) (209.85.212.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 05:55:33 +0000 Received: by vwj26 with SMTP id 26so646795vwj.5 for ; Thu, 16 Jul 2009 22:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=BSfUYVvmu2OlhvPrgdSsUWKQy1VVbEQLz6Joc25KaMQ=; b=OdZ4TB1sa1Fd/VCi0QjuJvAUl+mW8yaKRviifFh0DTPo/pyCCFGdAywmALC3Mtzrjl YFySOwvBoYk6IXqJ1r+Nw1czV0lwa3vdSn74ropKXpPkr7VeICzSodF+RPmMvULriUiG MF/nmJXQy9E9PUIZFLZnkx4n3aAltTxWwSNYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RShkFZvVDjLy2Nr1OJI0bQE/ETsPCtbt1sE99OG1GEYFmsd3Jenj0j2LkkVUzmCI/K c/bROPjM5q5q6AMIe8hDCfSU+b4M++BNascekeHg9XzLNgUUNZFr6jr8gclo6yr+2/Af 7ke6t3wqLrJM1x0C2vcrLyXtoSthCy4QtJzuE= MIME-Version: 1.0 Received: by 10.220.71.6 with SMTP id f6mr1042697vcj.16.1247810112676; Thu, 16 Jul 2009 22:55:12 -0700 (PDT) In-Reply-To: <873f8eb60907161354k424069d6p2ed135cb3cdae77e@mail.gmail.com> References: <873f8eb60907151257r21498614q8775ec892afa2597@mail.gmail.com> <873f8eb60907151309h767e5f68r83a0b80d30215ca@mail.gmail.com> <873f8eb60907151324k4400d567rd64c3b01c40d9e64@mail.gmail.com> <873f8eb60907151614x280e5b2dq65727835bbd5494@mail.gmail.com> <001801ca0687$61f861e0$25e925a0$@com> <873f8eb60907160753s5c489f59x3aa1a7e01f7bb81a@mail.gmail.com> <8211a1320907160815m12bb9e75o13855fa046e931c4@mail.gmail.com> <873f8eb60907161354k424069d6p2ed135cb3cdae77e@mail.gmail.com> Date: Thu, 16 Jul 2009 22:55:12 -0700 Message-ID: <314098690907162255m409257dfo455092402ba7ac3c@mail.gmail.com> Subject: Re: Datanode Cannot Connect To The Server From: jason hadoop To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001485e8d2168365bf046ee06e1e X-Virus-Checked: Checked by ClamAV on apache.org --001485e8d2168365bf046ee06e1e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 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 --001485e8d2168365bf046ee06e1e--