hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: ${user.name}, ${user.host}?
Date Wed, 03 Dec 2008 17:45:52 GMT
Variables in configuration files may be Java system properties or other 
configuration parameters.  The list of pre-defined Java system 
properties is at:


Unfortunately the host name is not in that list.  You could define it by 
adding something like the following to conf/hadoop-env.sh:



sejong king wrote:
> Hello,
> In hadoop-site.xml, hadoop.tmp.dir uses ${user.name} to retrieve the username for its
directory.  Is there a similar way to retrieve the name of the host that this particular datanode
is starting up on? (in order to create unique directory names for each node.  something along
the lines of: user.host, user.local.name, machine.name, etc...)
> Thanks!
> -Sej

View raw message