2. Set Directories and Permissions

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:

  1. We strongly suggest that you edit and source the bash script files included in the companion files (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.

  2. 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_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.


loading table of contents...