Set Directories and Permissions
Create directories and configure ownership and permissions on the appropriate hosts as described below. If any of these directories already exist, delete and recreate them.
To set up Oozie configuration files:
Hortonworks recommends that you edit and source the bash script files included in the companion files.
Alternately, you can also copy the contents to your ~/.bash_profile to set up these environment variables in your environment.
Run the following commands on your Oozie server:
mkdir -p $OOZIE_DATA;chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_DATA;chmod -R 755 $OOZIE_DATA;
mkdir -p $OOZIE_LOG_DIR;chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_LOG_DIR;chmod -R 755 $OOZIE_LOG_DIR;
mkdir -p $OOZIE_PID_DIR;chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_PID_DIR;chmod -R 755 $OOZIE_PID_DIR;
mkdir -p $OOZIE_TMP_DIR;chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_TMP_DIR;chmod -R 755 $OOZIE_TMP_DIR;
mkdir /etc/oozie/conf/action-confchown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_TMP_DIR;chmod -R 755 $OOZIE_TMP_DIR;
where:
$OOZIE_DATA is the directory to store the Oozie data. For example, /var/db/oozie.
$OOZIE_LOG_DIR is the directory to store the Oozie logs. For example, /var/log/oozie.
$OOZIE_PID_DIR is the directory to store the Oozie process ID. For example, /var/run/oozie.
$OOZIE_TMP_DIR is the directory to store the Oozie temporary files. For example, /var/tmp/oozie.
$OOZIE_USER is the user owning the Oozie services. For example, oozie.
$HADOOP_GROUP is a common group shared by services. For example, hadoop.