Return-Path: Delivered-To: apmail-lucene-hadoop-user-archive@locus.apache.org Received: (qmail 99014 invoked from network); 1 Jun 2007 06:23:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 06:23:33 -0000 Received: (qmail 69059 invoked by uid 500); 1 Jun 2007 06:23:36 -0000 Delivered-To: apmail-lucene-hadoop-user-archive@lucene.apache.org Received: (qmail 69030 invoked by uid 500); 1 Jun 2007 06:23:36 -0000 Mailing-List: contact hadoop-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-user@lucene.apache.org Delivered-To: mailing list hadoop-user@lucene.apache.org Received: (qmail 69019 invoked by uid 99); 1 Jun 2007 06:23:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 23:23:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [207.126.228.149] (HELO rsmtp1.corp.yahoo.com) (207.126.228.149) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 23:23:30 -0700 Received: from [248.194.87.9] (proxy7.corp.yahoo.com [216.145.48.98]) by rsmtp1.corp.yahoo.com (8.13.8/8.13.6/y.rout) with ESMTP id l516N7wN028865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 31 May 2007 23:23:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=NatiFon92o5kaOLbD7XQTvZkhWu8hNRlyviD74o4VVZY36IwDHBY7e2If7OAuyn0 Message-ID: <465FBB4A.2060402@yahoo-inc.com> Date: Thu, 31 May 2007 23:23:06 -0700 From: Raghu Angadi User-Agent: Thunderbird 1.5.0.5 (X11/20060808) MIME-Version: 1.0 To: hadoop-user@lucene.apache.org Subject: Re: Upgrade of DFS - Urgent References: <465FB5F2.1050205@apache.org> In-Reply-To: <465FB5F2.1050205@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org This is the result of HADOOP-1242. I prefer if it did not require presence of this image directory. For now you could manually create image/fsimage file in name/ directory. If you write random 4 bytes to fsimage, you have 50% chance of success. Basically readInt() from the file should be less than -3. Only first 4 bytes are important. Raghu. Dennis Kubes wrote: > All, > > I upgraded to the most recent trunk of Hadoop and I started getting the > error below, where /d01/hadoop/dfs/name is our namenode directory: > > org.apache.hadoop.dfs.InconsistentFSStateException: Directory > /d01/hadoop/dfs/name is in an inconsistent state: > /d01/hadoop/dfs/name/image does not exist. > > The old configuration was under a directory structure like: > > /d01/hadoop/dfs/name/current > > After backup up the namenode and playing around a little I found that if > I reformatted the namenode and then copied over the old files that were > in the current directory back into the "new" current directory that the > namenode would start up. > > We have quite a bit of data on this cluster (around 8T) and I am a > little nervous about starting up the entire cluster without a little > clarification. If I startup the cluster now, will any old data blocks > be deleted or will those data blocks remain because I copied over the > old configuration files into the new "current"? > > Is there another way to upgrade this DFS cluster? Any help is appreciated. > > Dennis Kubes >