Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22A289E30 for ; Tue, 22 May 2012 07:34:26 +0000 (UTC) Received: (qmail 71576 invoked by uid 500); 22 May 2012 07:34:25 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 71403 invoked by uid 500); 22 May 2012 07:34:24 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 71388 invoked by uid 99); 22 May 2012 07:34:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 07:34:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dontariq@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 07:34:18 +0000 Received: by qcsc21 with SMTP id c21so4924752qcs.35 for ; Tue, 22 May 2012 00:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=+Na1I3DcdTnKChWHaEBI8aSRxTRcxMlT4ZbzabexgZ8=; b=gEawUOntOjav1spFhVSMdT0wWq9sIJlqSEJ0pgHhNFpc6ExyPSa8RqjUNWBJuLbrT6 AMqGJsXHalg55uHKGOMSgZf8gkLgDo4C6n05dQOXfnJXaHW2fYauAa7su4T9IH3e/3vd EpwEsTixN9zheeDck5jJNfNG26y4f5ssOz/Jjwe+qeN/SKgzubStRRhTmItN7mjhf+5f MiAgjVqUPJp5w6qbPlz01FkKnuA8UHAfbZNziaUaCLXvDs7+B8RIIXjQy7qoEbEBw2Gy fFrxpUxfoGjcr9DYrIbTyZ64QGiN+fHGeGEYgzBO3vhbJs+ux1s6lde/2gwFCdj8mQm0 OeJg== Received: by 10.229.69.97 with SMTP id y33mr11210564qci.79.1337672037541; Tue, 22 May 2012 00:33:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.126.75 with HTTP; Tue, 22 May 2012 00:33:17 -0700 (PDT) In-Reply-To: <4FBB230A.9000801@uci.cu> References: <4FBB230A.9000801@uci.cu> From: Mohammad Tariq Date: Tue, 22 May 2012 13:03:17 +0530 Message-ID: Subject: Re: namenode directory disappear after machines restart To: hdfs-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Brendan, Do as suggested by Marcos..If you do not set these properties, Hadoop uses "tmp" directory by default..Apart from setting these properties in your hdfs-site.xml file add the following property in your core-site.xml file - hadoop.tmp.dir some_permanent_path Regards, =A0=A0 =A0Mohammad Tariq On Tue, May 22, 2012 at 10:54 AM, Marcos Ortiz wrote: > This is an usual behavior on Unix/Linux systems. When you restart the > system, the content of the /tmp directory is cleaned, because precisely, = the > purpose of this directory is to keep files temporally. > For that reason, the data directory for the HDFS filesystem should be > another directory, /var/hadoop/data for example, of course, a directory > durable in time. > So, you should change your dfs.name.dir and your dfs.data.dir variable in > your hdfs-site.xml. > > Regards > > > On 05/21/2012 11:21 PM, Brendan cheng wrote: >> >> Hi, >> I'm not sure if there is a setting to avoid the Namenode removed after >> hosting machine of Namenode restart.I found that after successfully >> installed single node pseudo distributed hadoop following from your webs= ite, >> the name node dir /tmp/hadoop-brendan/dfs/name are removed if machine >> reboot. >> What do I miss? >> Brendan >> 2012-05-22 11:14:05,678 INFO org.apache.hadoop.hdfs.server.common.Storag= e: >> Storage directory /tmp/hadoop-brendan/dfs/name does not exist.2012-05-22 >> 11:14:05,680 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: >> FSNamesystem initialization >> failed.org.apache.hadoop.hdfs.server.common.InconsistentFSStateException= : >> Directory /tmp/hadoop-brendan/dfs/name is in an inconsistent state: stor= age >> directory does not exist or is not accessible. =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSI= mage.java:303) >> =A0 =A0 =A0 at >> org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirecto= ry.java:100) >> at >> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesys= tem.java:388) >> =A0 =A0 =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.(FSNamesystem.= java:362) >> =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java= :276) >> =A0 =A0 =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:496= ) >> =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.= java:1279) >> =A0 at >> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288)= 2012-05-22 >> 11:14:05,685 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: >> org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Direc= tory >> /tmp/hadoop-brendan/dfs/name is in an inconsistent state: storage direct= ory >> does not exist or is not accessible. at >> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSI= mage.java:303) >> =A0 =A0 =A0 at >> org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirecto= ry.java:100) >> at >> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesys= tem.java:388) >> =A0 =A0 =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.(FSNamesystem.= java:362) >> =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java= :276) >> =A0 =A0 =A0 =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:496= ) >> =A0at >> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.= java:1279) >> =A0 at >> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288) >> >> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS >> INFORMATICAS... >> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION >> >> http://www.uci.cu >> http://www.facebook.com/universidad.uci >> http://www.flickr.com/photos/universidad_uci > > > -- > Marcos Luis Ort=EDz Valmaseda > =A0Data Engineer&& =A0Sr. System Administrator at UCI > =A0http://marcosluis2186.posterous.com > =A0http://www.linkedin.com/in/marcosluis2186 > =A0Twitter: @marcosluis2186 > > > > 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS > INFORMATICAS... > CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION > > http://www.uci.cu > http://www.facebook.com/universidad.uci > http://www.flickr.com/photos/universidad_uci