2. Set Directories and Permissions

The scripts.zip file you downloaded in Download Companion Files  includes two scripts, usersAndGroups.sh and directories.sh, for setting environment parameters. We strongly suggest you edit and source (alternatively, you can also copy the contents to your ~/.bash_profile) to set up these environment variables in your environment. See Define Environment Parameters for more information.

 2.1. Create Log Directories

Execute these commands on your Oozie server machine.

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

loading table of contents...