Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 26838 invoked from network); 6 May 2009 19:26:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 May 2009 19:26:42 -0000 Received: (qmail 44084 invoked by uid 500); 6 May 2009 19:26:40 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 44001 invoked by uid 500); 6 May 2009 19:26:40 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 43990 invoked by uid 99); 6 May 2009 19:26:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2009 19:26:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fossist@gmail.com designates 209.85.221.110 as permitted sender) Received: from [209.85.221.110] (HELO mail-qy0-f110.google.com) (209.85.221.110) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2009 19:26:31 +0000 Received: by qyk8 with SMTP id 8so691215qyk.5 for ; Wed, 06 May 2009 12:26:11 -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 :content-transfer-encoding; bh=J3GriQsog63d8f4iERibpgOr/17jYqzD6HEW22BgFz8=; b=WCq+UmMwdYEps3diWmiiat+9GUUTd//nUe3cWoiVvOVZVBN652CWk6cFoXLsChCHdr KnJdEw95xrxeJGmucEQ4/pvFRL0Ua+512XmBU4vjUbfZR6jdgYIoxRQMMTKffH1t3OXg AZAtnB6xyf+LoteBvgnKUnDFpg3chpzaSgmQ8= 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=nl2o57XyuTEHAl61B19aMMxafmMurbS4rlQUGOCbX3o/MUhRyCJodJAbLO6oa1pQVJ VhRr+o9k0UcYarye0SzSggR4mUkPqmzGDrbRB5k72mGFOLOd26ND2AZDpB/2Cv0d0+1y 6zCByEoNW+Lt/xBV9dk5HBpdN3q1wN5DahEi8= MIME-Version: 1.0 Received: by 10.143.30.2 with SMTP id h2mr614477wfj.227.1241637970600; Wed, 06 May 2009 12:26:10 -0700 (PDT) In-Reply-To: <45f85f70905061214t6eaa54dfl47a7d7bdb0c9a24d@mail.gmail.com> References: <3f8297b20905061140o49941e35jd9462168c29aad49@mail.gmail.com> <45f85f70905061214t6eaa54dfl47a7d7bdb0c9a24d@mail.gmail.com> Date: Thu, 7 May 2009 00:56:10 +0530 Message-ID: <3f8297b20905061226o37bf904dr98b68737f292b66a@mail.gmail.com> Subject: Re: Folders and files still present after format From: Foss User To: core-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, May 7, 2009 at 12:44 AM, Todd Lipcon wrote: > On Wed, May 6, 2009 at 11:40 AM, Foss User wrote: > >> Today I formatted the namenode while the namenode and jobtracker was >> up. I found that I was still able to browse the file system using the >> command: bin/hadoop dfs -lsr / >> >> Then, I stopped the namenode and jobtracker and did a format again. I >> started the namenode and jobtracker. I could still browse the file >> system. Is this an expected behavior or a problem? >> >> I was formatting using the command: bin/hadoop namenode -format >> >> I was running this command on the namenode machine. >> > > Were you running the format command as the same user that runs the namenode? > With a default configuration, the dfs.name.dir has the user name included in > it, so running that command as your user account won't affect the cluster if > the cluster namenode is running as a "hadoop" account, for example. > > -Todd > Yes, as far as I remember but I am not absolutely sure. From your reply, I understand what I experienced (may be due to my fault) is not an expected behavior. So, if I face the same error again I would like to provide more information to this list. What are the logs that I should be uploading here for analysis if I see this again?