Create directories and configure ownership + permissions on the appropriate hosts as described below.
If any of these directories already exist, delete and recreate them. Use the following instructions to set up Oozie configuration files:
Recommended - Edit and source the files included in
scripts.zipfile (downloaded in Download Companion Files).Alternatively, you can also copy the contents to your
~/.bash_profile) to set up these environment variables in your environment.Execute 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;
where:
$OOZIE_DATAis the directory to store the Oozie data. For example,/var/db/oozie.$OOZIE_LOG_DIRis the directory to store the Oozie logs. For example,/var/log/oozie.$OOZIE_PID_DIRis the directory to store the Oozie process ID. For example,/var/run/oozie.$OOZIE_TMP_DIRis the directory to store the Oozie temporary files. For example,/var/tmp/oozie.$OOZIE_USERis the user owning the Oozie services. For example,oozie.$HADOOP_GROUPis a common group shared by services. For example,hadoop.

