There are several configuration files that need to be set up for Oozie.
From the file you downloaded in Download Companion Files,
extract the files in configuration_files/oozie
directory to a temporary
location.
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
Property | Example | Description |
---|---|---|
oozie.base.url |
|
Enter your Oozie server hostname |
oozie.service.JPAService.jdbc.driver |
For Derby: For MySQL: For Oracle: | JDBC Driver class. |
oozie.service.JPAService.jdbc.url | For Derby: For MySQL: For Oracle: | JDBC URL. |
oozie.service.JPAService.jdbc.username | oozie_dbuser | Oozie database user credentials created using the instructions provided here. |
oozie.service.JPAService.jdbc.password | oozie_dbpasswd |
Table 8.2. oozie-env.sh
Variable | Example | Description |
---|---|---|
OOZIE_LOG_DIR |
/var/log/oozie
|
Use value from |
OOZIE_PID_DIR |
/var/run/oozie
|
Use value from |
OOZIE_DATA_DIR |
/var/db/oozie
|
Use value from |
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/../