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 A29E8F74E for ; Wed, 20 Mar 2013 12:03:37 +0000 (UTC) Received: (qmail 9910 invoked by uid 500); 20 Mar 2013 12:03:32 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 9610 invoked by uid 500); 20 Mar 2013 12:03:32 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 9597 invoked by uid 99); 20 Mar 2013 12:03:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 12:03:31 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dontariq@gmail.com designates 209.85.128.174 as permitted sender) Received: from [209.85.128.174] (HELO mail-ve0-f174.google.com) (209.85.128.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 12:03:27 +0000 Received: by mail-ve0-f174.google.com with SMTP id pb11so1300786veb.33 for ; Wed, 20 Mar 2013 05:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=dc9yFPxwSTyTU/30s8Hpd4UgHIn5c73/GRtt7cUBPfM=; b=LQmhBQUXg08opRGaqE1Vo2Hb4ZDABWc4vOTDXYXWRherYG7m1fmy/AEocjkYCKi+n0 lzvIWegdGK3tNp177GvSJXGXJJeLyp3XWNJDZ/A7B4D8zfefMu69Dd2EG3otpKvASnvt 1Xxh9QIAux3HUKDqu9hO8+UwWI+tqV/ARl+5VqVUS+EHDpNsAUPcPZCSlpF9x/AJykps s+zLiVadcA7jeksKSShJL3q1ZJ6qhA26WR1Oqq67PF76rFa2z3SGpt3BH3c/LFjPMJ23 wq6Br4M+F+MKaVLT/O4VKxTVW0QftnfsncA1QB6+dUr0lmSqqivW6DoD1aALjKAM1ey+ N5OA== X-Received: by 10.52.90.243 with SMTP id bz19mr6227214vdb.112.1363780987119; Wed, 20 Mar 2013 05:03:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.59.13.9 with HTTP; Wed, 20 Mar 2013 05:02:27 -0700 (PDT) In-Reply-To: References: From: Mohammad Tariq Date: Wed, 20 Mar 2013 17:32:27 +0530 Message-ID: Subject: Re: format NameNode after reboot To: "user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=20cf307c9aa44a1b8204d85a0163 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307c9aa44a1b8204d85a0163 Content-Type: text/plain; charset=ISO-8859-1 Have you added these properties in your hdfs-site.xml file : dfs.name.dir /hadoop/hdfs/name dfs.data.dir /hadoop/hdfs/data If not please do that. The values of these properties default to the /tmp directory which gets emptied at each reboot and you end up loosing your data and metadata. HTH Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Wed, Mar 20, 2013 at 5:29 PM, oualid ait wafli wrote: > Hi, > > I was using Hadoop 1.0.4 in a single-node mode and everything was working > fine.But then I had to restart my computer because of some reason.And now > when I am trying to start Namenode and Datanode I can find only Datanode > running.Could anyone tell me the possible reason of this problem??Or am I > doing something wrong?? I tried both bin/start-all.sh and bin/start-dfs.sh. > > . Many thanks in advance > --20cf307c9aa44a1b8204d85a0163 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Have you added these properties in your hdfs-site.xml file= :
=A0 =A0 =A0 =A0 <property>
<name>dfs.name.dir</name>
=
<value>/hado= op/hdfs/name</value>
</property>
<property>= ;
<name>= ;dfs.data.dir</name> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
<value>/hado= op/hdfs/data</value>
</property>
<property> =A0

If not please do that. The values of these = properties default to the /tmp directory which gets emptied at each reboot = and you end up loosing your data and metadata.

HTH

Warm Regards,
Tariq
cloudfront.blogs= pot.com


On Wed, Mar 20, 2013 at 5:29 PM, oualid = ait wafli <oualid.aitwafli@gmail.com> wrote:
Hi,

I was using Hadoop 1.0.4 in a single-node = mode and everything was=20 working fine.But then I had to restart my computer because of some=20 reason.And now when I am trying to start Namenode and Datanode I can=20 find only Datanode running.Could anyone tell me the possible reason of=20 this problem??Or am I doing something wrong?? I tried both bin/start-all.sh and bin/start-dfs.sh.

. Many thanks in advance

--20cf307c9aa44a1b8204d85a0163--