Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 19975 invoked from network); 14 Jan 2010 13:58:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2010 13:58:25 -0000 Received: (qmail 55921 invoked by uid 500); 14 Jan 2010 13:58:22 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 55849 invoked by uid 500); 14 Jan 2010 13:58:22 -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 55839 invoked by uid 99); 14 Jan 2010 13:58:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2010 13:58:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnawux@gmail.com designates 209.85.223.193 as permitted sender) Received: from [209.85.223.193] (HELO mail-iw0-f193.google.com) (209.85.223.193) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2010 13:58:14 +0000 Received: by iwn31 with SMTP id 31so17634978iwn.5 for ; Thu, 14 Jan 2010 05:57:53 -0800 (PST) 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 :content-transfer-encoding; bh=mcfeJxDK9QmxVGBogvYfhssJA+Umu4xyeAPLzv805Kg=; b=Uv0wbxJMIdooxByZQ1jspkcplkiUTB/GynNAnT15ZVXZCpGOP+a21VWigB2ePY/GfP LyQNKoygVNUx/0Y0mhHRDd7dgh/68sWb0FOkAgGbnymqINnwszNIdYoLFJs5xLRNnCiV 8yLDnkgJ4xZSPIgTFyrmY3mpC6mTpNFHR+dVs= 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:content-transfer-encoding; b=uhncvTMYQOkjvMPrKZn0B7LM/vEqiUvd6ueQnEMJi/3pkxAKccvfJuceyDyD1FRgNj 9WDjA+GrtmnT/yZbrT+UPPwb9VHh9L901Y/zy3eU1ax9MjaW3emDK24cz6i5bSAxqyhz QVwDIsQuyeWY4+7WwZ7lPTuzm81gxXwEUV7Fw= MIME-Version: 1.0 Received: by 10.231.143.12 with SMTP id s12mr904327ibu.38.1263477473002; Thu, 14 Jan 2010 05:57:53 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Jan 2010 21:57:52 +0800 Message-ID: Subject: Re: Unable to exit safe mode From: Wang Xu To: common-user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Rob, What do you get if you use hadoop dfsadmin -report ? And you can specify the fs in command line when you call dfsadmin. On Thu, Jan 14, 2010 at 9:41 PM, Rob Stewart wrote: > Hi, > > I'm having a slight issue with my Hadoop cluster. There are 32 nodes. I > have: > /usr/lib/hadoop/bin/stop-mapred.sh > /usr/lib/hadoop/bin/stop-dfs.sh > /usr/lib/hadoop/bin/start-dfs.sh > /usr/lib/hadoop/bin/start-mapred.sh > > All worked perfectly, no errors. > > I try and remove a file: hadoop dfs -rmr wordCountOutput.jaql > > This returns: Cannot delete [the file]. Name node is in safe mode. > > I tried to exit safemode manually. I get: >> hadoop dfsadmin -safemode leave > FileSystem is file:/// > > =C2=A0The code generating this is: > > > =C2=A0public void setSafeMode(String[] argv, int idx) throws IOException = { > =C2=A0 =C2=A0 final String safeModeUsage =3D "Usage: java DFSAdmin -safem= ode " > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+ "[enter | leave | get]"; > =C2=A0 =C2=A0if (!(fs instanceof DistributedFileSystem)) { > =C2=A0 =C2=A0 =C2=A0System.out.println("FileSystem is " + fs.getName()); > =C2=A0 =C2=A0 =C2=A0return; > =C2=A0 =C2=A0} > > > What seems to be the issue? the HDFS is running, and I can browse the > filesystem, both via the command line and the Hadoop web interface. > > > Thanks... > --=20 Wang Xu Stephen Leacock - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." - http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html