hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lu welman <welmanwe...@gmail.com>
Subject How can I get system environment variable in core-site.xml
Date Thu, 11 Mar 2010 14:50:18 GMT
Hi, all

I saw that in *-site.xml, we can use ${user.name} to get the username of
present user.
If I want to get the environment $HOSTNAME, what should I do?

I tried ${HOSTNAME}, ${env.hostname}, both of them can't work.
It just return the string of "${HOSTNAME}" and "${env.hostname}" themselves.


So can anybody tell me what I should use for get this environment?
Thank you!

welman Lu

Mime
View raw message