Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 B8A45E545 for ; Wed, 6 Feb 2013 15:44:12 +0000 (UTC) Received: (qmail 94286 invoked by uid 500); 6 Feb 2013 15:44:07 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 94177 invoked by uid 500); 6 Feb 2013 15:44:07 -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 94162 invoked by uid 99); 6 Feb 2013 15:44:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 15:44:06 +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 ahmic.samir@gmail.com designates 74.125.82.53 as permitted sender) Received: from [74.125.82.53] (HELO mail-wg0-f53.google.com) (74.125.82.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 15:43:58 +0000 Received: by mail-wg0-f53.google.com with SMTP id fn15so1203406wgb.20 for ; Wed, 06 Feb 2013 07:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=Cv2Gr22YvXJnp8Ju0P55Zu/Po/Rx7PoaCk5rmzFbUkw=; b=EnVhKpVWAskNMhYV4Ly8D9/REjUxREPdMeLZ88pbuvqkXYT1HbVjAPq54SOIXQNYNq pVN0SlFtGyoSojLxw+Y8BRGqFySdCMSmcucU8OdpnLKUwnK88LQ6n2ix3oF6xKRpyCcE Spdb9JMf5TxNuue8fBp3RZ7x9NQiKD+DkfWV7zOWRNj5mpfydASYREGN4BJnuHJiJrne HJP3SeF6XxQvWfcZgVay6Bx5JJNHQslub4zFLIgLwEuCAXoYBJhgzkj16/EP9TjAo6f/ wHpN/eQTZX1WNew8+bOdQkLV+YYh8/wUpIJ4ESYnzWxnofaeDO1RPSsYlTPgTJ/tkY59 Z0Dw== MIME-Version: 1.0 X-Received: by 10.180.8.4 with SMTP id n4mr5896002wia.13.1360165418676; Wed, 06 Feb 2013 07:43:38 -0800 (PST) Received: by 10.216.30.73 with HTTP; Wed, 6 Feb 2013 07:43:38 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Feb 2013 16:43:38 +0100 Message-ID: Subject: =?windows-1252?Q?Re=3A_=93hadoop_namenode_=2Dformat=94_formats_wrong_dire?= =?windows-1252?Q?ctory?= From: Samir Ahmic To: 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, Can you try to execute format command like this: hadoop --config /etc/hadoop/conf namenode -format Look like hadoop script is unable to pickup your config dir. Cheers On Wed, Feb 6, 2013 at 4:32 PM, Andrey V. Romanchev wrote: > Done. > $ echo $HADOOP_HOME > /usr/lib/hadoop/ > $ ll /usr/lib/hadoop/conf > lrwxrwxrwx. 1 root root 16 =D0=A4=D0=B5=D0=B2 6 16:09 /usr/lib/hadoop/co= nf -> > /etc/hadoop/conf > > Sadly, it did not help. > > > 2013/2/6 Nitin Pawar >> >> HADOOP_HOME is the directory where you installed hadoop >> >> a directory above your conf directory (in other words parent directory o= f >> conf) >> >> >> On Wed, Feb 6, 2013 at 8:55 PM, Andrey V. Romanchev >> wrote: >>> >>> Hello Samir >>> Yes. Here is full section from my hdfs-site.xml >>> >>> >>> >>> dfs.name.dir >>> /mnt/ext/hadoop/hdfs/namenode >>> >>> Determines where on the local filesystem the DFS name node >>> should store the name table. If this is a comma-delimited list >>> of directories then the name table is replicated in all of the >>> directories, for redundancy. >>> >>> true >>> >>> >>> >>> 2013/2/6 Samir Ahmic >>>> >>>> Hi, Andrey >>>> >>>> Did you try true in your config ? It should be like thi= s: >>>> >>>> dfs.name.dir >>>> /mnt/ext/hadoop/hdfs/namenode >>>> true >>>> >>>> Cheers >>>> >>>> >>>> On Wed, Feb 6, 2013 at 4:07 PM, Andrey V. Romanchev >>>> wrote: >>>> > >>>> > Hello! >>>> > >>>> > I'm trying to install Hadoop 1.1.2.21 on CentOS 6.3. >>>> > >>>> > I've configured dfs.name.dir in /etc/hadoop/conf/hdfs-site.xml file >>>> > >>>> > dfs.name.dir >>>> > /mnt/ext/hadoop/hdfs/namenode >>>> > >>>> > But when I run "hadoop namenode -format" command, it formats >>>> > /tmp/hadoop-hadoop/dfs/name directory instead. It seems like default >>>> > directory. >>>> > >>>> > What am I missing? >>> >>> >> >> >> >> -- >> Nitin Pawar > >