Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 37913 invoked from network); 2 Jul 2010 18:36:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 18:36:00 -0000 Received: (qmail 28284 invoked by uid 500); 2 Jul 2010 18:35:58 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 28096 invoked by uid 500); 2 Jul 2010 18:35:57 -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 28088 invoked by uid 99); 2 Jul 2010 18:35:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 18:35:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 18:35:51 +0000 Received: by gwj23 with SMTP id 23so1832547gwj.35 for ; Fri, 02 Jul 2010 11:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=YD2yh7ToLGa6w7V5S896zqZi47BxQQg1MFlA/UZ/2Uo=; b=maaqFc3OImXOu9Tx8VEzVGao+7hIOD6MAtsfHur+jUVSL8YS9iYWmbVKjNZgrArzM4 KPGPX1d0CeksBymHi0GGKTJ+HqQAKzjEzqtEw5S7CH9AKW0SVPMC7ZVFgk5zMqnijwE2 aX8Z6gZ5fJ4IOfsWOXH8nm0PIDn9p5tZtOBQU= 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=RVFg3YesfzWM5ZpDoDXpzAjL18teduz2+R9AfadxLafkonuV8z+YZcERsDFj8qAf1E EceGwzlIhJmWwiU0ahSI/vgID+lpCK7vt4F9ax+66XbFYy9v1aKUWKW/91B/5dfUiTwX 5DBJFostLvFvViB9asrV2JnxcnKGl7FLC6l3A= MIME-Version: 1.0 Received: by 10.229.245.8 with SMTP id ls8mr789464qcb.289.1278095730447; Fri, 02 Jul 2010 11:35:30 -0700 (PDT) Received: by 10.229.188.144 with HTTP; Fri, 2 Jul 2010 11:35:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 2 Jul 2010 14:35:30 -0400 Message-ID: Subject: Re: problem with rack-awareness From: Edward Capriolo To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jul 2, 2010 at 2:27 PM, Allen Wittenauer wrote: > > On Jul 1, 2010, at 7:50 PM, elton sky wrote: > >> hello, >> >> I am trying to separate my 6 nodes onto 2 different racks. >> For test purpose, I wrote a bash file which smply returns "rack0" all the >> time. And I add property "topology.script.file.name" in core-site.xml. > > rack0 or /rack0? > > I think the leading / is required. > > >> >> When I restart by start-dfs.sh, the namenode could not find any datanode at >> all. All datanodes are lost somehow. If I remove "topology.script.file.name" >> from conf, things back to normal, i.e. all datanodes are under >> "default-rack". >> >> I don't why datanode couldn't register to namenode when using rack. Any >> ideas? > > It sounds like your topology script isn't returning the data in the correct format. If you want a clear cut example refer to the hadoop wiki: http://wiki.apache.org/hadoop/topology_rack_awareness_scripts