Troubleshooting and Reference Guide : Configuration File Reference : dr_env.sh
 
Share this page                  
dr_env.sh
Environmental Settings
dr_env.sh is used (on UNIX only) by DataFlow command line utilities to initialize installation-wide environment variables. This file is sourced by the shell script wrappers before doing any processing based on environment, such as activation of features like support for HDFS. Placing initialization code in this file can guarantee consistency for all users of DataFlow without forcing each and every user to properly initialize their environment.
For example, to ensure HADOOP_HOME is set for all users, dr_env.sh might be edited to contain:
if [ -z "${HADOOP_HOME}" ]; then
    HADOOP_HOME= <path to Hadoop installation>
fi