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 8ADF010E62 for ; Mon, 3 Mar 2014 05:56:58 +0000 (UTC) Received: (qmail 28660 invoked by uid 500); 3 Mar 2014 05:56:49 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 28268 invoked by uid 500); 3 Mar 2014 05:56:47 -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 28260 invoked by uid 99); 3 Mar 2014 05:56:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 05:56:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dwivedishashwat@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 05:56:40 +0000 Received: by mail-lb0-f180.google.com with SMTP id 10so4256782lbg.39 for ; Sun, 02 Mar 2014 21:56:19 -0800 (PST) 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 :cc:content-type; bh=Ova6nGqrCDdt0Uo4MHkK1zSRowllsm84c9SdFP3dcZQ=; b=VymeKoa1bMNOfuHTWT5vC/Lhysa9GwN5uVUL6ongwxPty3z9wpfvDTscUYGyjdSKeh FfAO0m38CoPH9PByvVOy+CVK33aYYRvRHMmIws+Lf6cdtNs4AHM2XZQlWHbjD1yh6Z3g ahzJsDDEWXorpklrGiXNp7qXZrVk04YBYiU0UquUuxMxs4wTAsTyVnEA8BE2oyoRw5Er Uy5/onYcj8I6rWhXTp2ficylLhsp2YfNnGuwr/3Q0fXy2ZTT/8+Nv3qXV9F0u4D9CfDG lFSqJnZ6luzm5Of5hqQ+vW8Z3Ae1Ignu4M9TlZxjWIgHbMBZekF8+YA5C4QVPWWf1M1t m/RQ== X-Received: by 10.112.22.196 with SMTP id g4mr804360lbf.47.1393826179452; Sun, 02 Mar 2014 21:56:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.75.137 with HTTP; Sun, 2 Mar 2014 21:55:59 -0800 (PST) In-Reply-To: <20140303053711.GC13272@chengwei-workstation.bj.intel.com> References: <20140303053711.GC13272@chengwei-workstation.bj.intel.com> From: shashwat shriparv Date: Mon, 3 Mar 2014 11:25:59 +0530 Message-ID: Subject: Re: Need help to understand hadoop.tmp.dir To: user Cc: chengwei.yang.cn@gmail.com Content-Type: multipart/alternative; boundary=14dae9473ba34e158a04f3ad7211 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9473ba34e158a04f3ad7211 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can use any directory you like beside permissions are right. *Warm Regards_**=E2=88=9E_* * Shashwat Shriparv* [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9][image: https://twitter.com/shriparv] [image: https://www.facebook.com/shriparv] [imag= e: http://google.com/+ShashwatShriparv] [image: http://www.youtube.com/user/sShriparv/videos][image: http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] On Mon, Mar 3, 2014 at 11:07 AM, Chengwei Yang wrote: > Hi List, > > I'm confusing by hadoop.tmp.dir currently because its default value > "/tmp/hadoop-${user.name}" always means a directory in tmpfs in Linux. > So after the name node machine reboot, it gone away and then name node > fail to start. > > I found this was reported here. > > http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/201205.mbox/%3C= BAY148-W22BF95C5FBE2C40BF7CD9F86020@phx.gbl%3E > > As I found from http://hadoop.apache.org/docs/r2.3.0/, there are a lot > properties are based on hadoop.tmp.dir, like > dfs.namenode.name.dir file://${hadoop.tmp.dir}/dfs/name > > I'm wondering, if we can set the default value of hadoop.tmp.dir to > a non-tmpfs direcotry if it doesn't work at all by using a real tmpfs > directory? > > -- > Thanks, > Chengwei > --14dae9473ba34e158a04f3ad7211 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can use any directory you like= beside permissions are right.


Warm Regards_
=E2=88=9E_
= Shashwat Shrip= arv
<= font size=3D"4">
3D"http://www.linke=3D"ht=3D"https://www.f=3D"http://google.c=3D"http://www.you=<= font size=3D"4">3D"http://profil== <= /span>= <= /span>


On Mon, Mar 3, 2014 at 11:07 AM, Chengwe= i Yang <chengwei.yang.cn@gmail.com> wrote:
Hi List,

I'm confusing by hadoop.tmp.dir currently because its default value
"/tmp/hadoop-${user.nam= e}" always means a directory in tmpfs in Linux.
So after the name node machine reboot, it gone away and then name node
fail to start.

I found this was reported here.
= http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/201205.mbox/%3CBA= Y148-W22BF95C5FBE2C40BF7CD9F86020@phx.gbl%3E

As I found from http://hadoop.apache.org/docs/r2.3.0/, there are a lot
properties are based on hadoop.tmp.dir, like
dfs.namenode.name.dir =C2=A0 file://${hadoop.tmp.dir}/dfs/name

I'm wondering, if we can set the default value of hadoop.tmp.dir to
a non-tmpfs direcotry if it doesn't work at all by using a real tmpfs directory?

--
Thanks,
Chengwei

--14dae9473ba34e158a04f3ad7211--