You can also set HADOOP_CONF_DIR as far as I know.. I think that's cleaner.