hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: using environment variables in XML conf files
Date Thu, 10 Oct 2013 03:05:36 GMT
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
<andrew.mcdermott@linaro.org> wrote:
>
> I have the following path hard-coded for hadoop.tmp.dir in
> conf/core-site.xml:
>
>     <configuration>
>       <property>
>         <name>hadoop.tmp.dir</name>
>         <value>/home/aim/tmp/hadoop-${user.name}</value>
>       </property>
>     </configuration>
>
> 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

Mime
View raw message