3. Set Up the Oozie Configuration Files

There are several configuration files that need to be set up for Oozie.

 3.1. Extract the Oozie Configuration Files

From the file you downloaded in Download Companion Files, extract the files in configuration_files/oozie directory to a temporary location.

 3.2. Modify the Configuration Files

In the temporary directory, locate the following file and modify the properties based on your environment. Search for TODO in the files for the properties to replace.

 

Table 8.1. oozie-site.xml

PropertyExampleDescription

oozie.base.url

http://{oozie.full.hostname}:11000/oozie

Enter your Oozie server host­name

oozie.service.JPAService.jdbc.driver

For Derby: org.apache.derby.jdbc.EmbeddedDriver

For MySQL: com.mysql.jdbc.Driver

For Oracle: oracle.jdbc.driver.OracleDriver

JDBC Driver class.
oozie.service.JPAService.jdbc.url

For Derby: jdbc:derby:$oozie.data.dir/$oozie.db.schema.name-db;create=true

For MySQL: jdbc:mysql://$dbhost:3306/$dbname

For Oracle: jdbc:oracle:thin:@$dbhost:1521:$dbname

JDBC URL.
oozie.service.JPAService.jdbc.usernameoozie_dbuserOozie database user credentials created using the instructions provided here.
oozie.service.JPAService.jdbc.passwordoozie_dbpasswd

 

Table 8.2. oozie-env.sh

VariableExampleDescription

OOZIE_LOG_DIR

/var/log/oozie

Use value from $OOZIE_LOG_DIR

OOZIE_PID_DIR

/var/run/oozie

Use value from $OOZIE_PID_DIR

OOZIE_DATA_DIR

/var/db/oozie

Use value from $OOZIE_DATA_DIR


 3.3. Copy the Configuration Files

On your Oozie server machine, replace the installed Oozie configs with the modified Oozie configuration files and set appropriate permissions.

Also create a new config directory, copy the config files, and set the permissions:

rm -rf $OOZIE_CONF_DIR 
mkdir -p $OOZIE_CONF_DIR 

<Copy all the config files to $OOZIE_CONF_DIR>

chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_CONF_DIR/../ 
chmod -R 755 $OOZIE_CONF_DIR/../ 

loading table of contents...