hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Boesch <java...@gmail.com>
Subject Getting hostname (or any environment variable) into *-site.xml files
Date Fri, 12 Oct 2012 13:37:55 GMT
   We are using a library with hdfs that uses custom properties inside the
*-site.xml files.  Instead of (a) hard-coding or (b) writing a "sed" script
to update to the local hostnames on each deployed node, is there a
mechanism to use environment variables?


I have tried this and out of the box the string ${HOSTNAME} is used.
 Anyone have recommendation/solution on this?


stephen b

View raw message