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 79A8696B0 for ; Tue, 14 Feb 2012 07:56:58 +0000 (UTC) Received: (qmail 63268 invoked by uid 500); 14 Feb 2012 07:56:57 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 62441 invoked by uid 500); 14 Feb 2012 07:56:45 -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 62420 invoked by uid 99); 14 Feb 2012 07:56:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 07:56:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lblabs@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-lpp01m010-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 07:56:37 +0000 Received: by lagw12 with SMTP id w12so6601561lag.35 for ; Mon, 13 Feb 2012 23:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+Hsqu7+NxyuLjpxZCNpr+OPQZi0UprOGgWIvAyCNJY8=; b=hH94PH83wnBiPGbI/jqLf5UeLV9+/P7eAaguNJqs4AcP+qLN3ql3gbw6C+dgCRWTuj FbAjgJr959MFYCaTiSZUVql5j7eoRgYhCaB042RUz1yppMDC3xrwYgXw8592smCK+zYm UcgsXSYhOivc1ZKI3geX5A1RI2L9G0LszNOi4= MIME-Version: 1.0 Received: by 10.112.103.228 with SMTP id fz4mr3564242lbb.99.1329206175947; Mon, 13 Feb 2012 23:56:15 -0800 (PST) Received: by 10.112.25.163 with HTTP; Mon, 13 Feb 2012 23:56:15 -0800 (PST) Reply-To: bing.li@asu.edu In-Reply-To: References: Date: Tue, 14 Feb 2012 15:56:15 +0800 Message-ID: Subject: Re: Why Cannot the Data/Name Directory Be Changed? From: Bing Li To: hdfs-user@hadoop.apache.org, user Cc: Dong Pengfei Content-Type: multipart/alternative; boundary=f46d04017071f35d6004b8e7ede0 --f46d04017071f35d6004b8e7ede0 Content-Type: text/plain; charset=ISO-8859-1 Dear all, I fixed the problem in the previous email by doing that on Ubuntu 10 instead of RedHat 9. RedHat 9 might be too old? Thanks so much! Bing On Tue, Feb 14, 2012 at 1:00 PM, Bing Li wrote: > Dear all, > > I am a new user of HDFS. The default Data/Name directory is /tmp. I would > like to change it. The hdfs-site.xml is updated as follows. > > > dfs.replication > 1 > The actual number of replications can be specified when > the file is created. > > > hadoop.tmp.dir > /home/bing/GreatFreeLabs/Hadoop/FS > > > dfs.name.dir > ${hadoop.tmp.dir}/dfs/name/ > > > dfs.data.dir > ${hadoop.tmp.dir}/dfs/data/ > > > But when formatting by running the following command, I was asked to > format the /tmp. Why? > > $ hadoop namenode -format > Re-format filesystem in /tmp/hadoop-libing/dfs/name ? (Y or N) N > > Because the updated name node is not formatted, the name node cannot be > started. > > How to solve the problem? Thanks so much! > > Best regards, > Bing > --f46d04017071f35d6004b8e7ede0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear all,

I fixed the problem in the previous email by d= oing that on Ubuntu 10 instead of RedHat 9. RedHat 9 might be too old?

Thanks so much!
Bing

On Tue, Feb 14, 2012 at 1:00 PM, Bing Li <lblabs@gmail.com> wrote:
Dear all,
<= div style=3D"font-size:13px;font-family:arial,sans-serif">
I am a new user of HDFS. The default Data/Name directory is /tmp. I would l= ike to change it. The hdfs-site.xml is updated as follows.

=A0 &l= t;property>
=A0 =A0 <name>dfs.replication</name>
=A0 =A0 <valu= e>1</value>
=A0 =A0 <description>The actual number of replications can = be specified when the file is created.</description>
=A0 </propert= y>
=A0 &= lt;property>
=A0 =A0 <name= >hadoop.tmp.dir</name>
=A0 =A0 <value>/home/bing/GreatFreeLabs/Hadoop/FS</value>
=
=A0 </propert= y>
=A0 <property>
=A0 =A0 <name>dfs.name.dir</name>
=A0 =A0 <value>${hadoop.tmp.dir}/dfs/name/</value>
=A0 </property>
=A0 <property>
=A0 =A0 <name>dfs.data.dir</name>
=A0 =A0 <value>${hadoop.tmp.dir}/dfs/data/</value>
=A0 </property>

But wh= en formatting by running the following command, I was asked to format the /= tmp. Why?

=A0 = =A0$ hadoop namenode -format
=A0 =A0Re-format filesystem in /tmp/hadoop-libing/dfs/name ? (Y or N) N
=
Becaus= e the updated name node is not formatted, the name node cannot be started.<= /div>

How to solve the probl= em?=A0Thanks so much!

Best regards,
Bing

--f46d04017071f35d6004b8e7ede0--