environment variable for the daemon can be modified in the following files
hadoop-user-functions.sh allows for advanced users to override some shell functionality
~/.hadooprc stores the personal environment for an individual user. It is processed after the hadoop-env.sh and hadoop-user-functions.sh files and can contain the same settings.
From the command line:
hadoop envvars