Command Line Installation
Also available as:
PDF
loading table of contents...

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.

Hortonworks provides a set of configuration files that represent a working Oozie configuration. (See Download Companion Files. You can use these files as a reference point, however, you need need to modify them to match your own cluster environment.

If you choose to use the provided configuration files to set up your Oozie environment, complete the following steps to set up Oozie directories and permissions:

  1. Change the permissions on the config directory by entering the following commands:

    chown root:oozie /etc/oozie

    chmod 0750 /etc/oozie

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

  3. 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, /hadoop/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.