Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 6893A102DB for ; Thu, 10 Oct 2013 03:08:55 +0000 (UTC) Received: (qmail 3665 invoked by uid 500); 10 Oct 2013 03:06:31 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 3576 invoked by uid 500); 10 Oct 2013 03:06:26 -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 3558 invoked by uid 99); 10 Oct 2013 03:06:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 03:06:22 +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 (athena.apache.org: domain of harsh@cloudera.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 03:06:17 +0000 Received: by mail-ie0-f174.google.com with SMTP id qd12so127812ieb.19 for ; Wed, 09 Oct 2013 20:05:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=ztqiCk+HnejKkQseqpXNADdrNQpDNAIofLAWkXE6Sw8=; b=Mk+sLCZhyKcckqgaT3+t0kG254v8V/vRbNXlnaZ5yTJLx2822Nn9HeKIxJXSQ8xSQ6 FPJj5932KUqfoiTjqhHqtPFF+SKvM1tnOklv3oOH2ydMd5lb9ZLpmCzdtmalfJ5geLn/ GnkLsvpv5tgVQ79U0YTloEhZyl2OJwqXsp618vF4whC6XzB2L6xwkDSmYLBZk6ll5wg4 yaDwpv2zAb+wKmc/f6+dYt9Cy4NLJ0sYZ83bY57/Iwrk1wEaF3dKiAENewFn+xrTUvAH c/asV3p27w7A/m1v3GsnaXe0Vm5D0xmWW/HP9CHVv88LpY2eGv9B20in/mD8FT/QOlRk KXyA== X-Gm-Message-State: ALoCoQnh+hxazbJtCQmGAgGAzt/mc7STtolpT+ZkeEEK5A17NDhu7w64zpMPdWDNCm1s9q3pJ42V X-Received: by 10.50.30.9 with SMTP id o9mr4750340igh.0.1381374356912; Wed, 09 Oct 2013 20:05:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.234.225 with HTTP; Wed, 9 Oct 2013 20:05:36 -0700 (PDT) In-Reply-To: <87siwact89.fsf@spicy.frobware.com> References: <87siwact89.fsf@spicy.frobware.com> From: Harsh J Date: Thu, 10 Oct 2013 08:35:36 +0530 Message-ID: Subject: Re: using environment variables in XML conf files To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Java provides a system property for ${user.home} that is usually set to the same as $HOME of the session on Linux. You can therefore use "${user.home}/tmp/hadoop-${user.name}". On Wed, Oct 9, 2013 at 9:49 PM, Andrew McDermott wrote: > > I have the following path hard-coded for hadoop.tmp.dir in > conf/core-site.xml: > > > > hadoop.tmp.dir > /home/aim/tmp/hadoop-${user.name} > > > > Is it possible to replace the "/home/aim" with a substitutable version > $HOME? On a whim I tried ${env.home} but that didn't work... > > -- > andy > > -- Harsh J