Complete the following instructions to set up Oozie configuration files:
- Extract the Oozie configuration files. - From tthe downloaded - scripts.zipfile, extract the files from the- configuration_files/ooziedirectory to a temporary directory.
- Modify the configuration files. - In the temporary directory, locate the following file and modify the properties based on your environment. Search for - TODOin the files for the properties to replace.- Edit the - oozie-site.xmland modify the following properties:- <property> <name>oozie.base.url</name> <value>http://$oozie.full.hostname:11000/oozie</value> <description>Enter your Oozie server hostname.</description> </property> - <property> <name>oozie.service.StoreService.jdbc.url</name> <value>jdbc:derby:$OOZIE_DATA_DIR/$soozie.db.schema.name-db;create=true</value> <description>JDBC URL For Derby database: jdbc:derby:$OOZIE_DATA_DIR/$soozie.db.schema.name-db;create=true For MySQL database: jdbc:mysql://$dbhost:3306/$dbname For Oracle database: jdbc:oracle:thin:@$dbhost:1521/$oozie_dbname For PostgreSQL database: jdbc:postgresql://$dbhost:5432/$oozie_dbname </description> </property>- where - $soozie.db.schema.name-dbis set to- oozie.- <property> <name>oozie.service.StoreService.jdbc.driver</name> <value>org.apache.derby.jdbc.EmbeddedDriver</value> <description> JDBC driver class. For MySQL database: com.mysql.jdbc.Driver For Oracle database: oracle.jdbc.driver.OracleDriver For PostgreSQL database: org.postgresql.Driver </description> </property>- <property> <name>oozie.service.StoreService.jdbc.username</name> <value>$oozie_user</value> <description> DB user name. </description> </property>- <property> <name>oozie.service.StoreService.jdbc.password</name> <value>$oozie_password</value> <description> DB user password. IMPORTANT: if password is emtpy leave a 1 space string, the service trims the value, if empty Configuration assumes it is NULL. IMPORTANT: if the StoreServicePasswordService is active, it will reset this value with the value given in the console. </description> </property>
- Edit the - oozie-env.shand modify the following properties:- <property> <name>OOZIE_LOG_DIR</name> <value>/var/log/oozie</value> <description>Use value from $OOZIE_LOG_DIR </description> </property> - <property> <name>OOZIE_PID_DIR</name> <value>/var/run/oozie</value> <description>Use value from $OOZIE_PID_DIR </description> </property> - <property> <name>OOZIE_DATA_DIR</name> <value>/var/db/oozie</value> <description>Use value from $OOZIE_DATA_DIR </description> </property> 
 
- Copy the Configuration Files - On your Oozie server create the config directory, copy the config files and set the permissions: - rm -r $OOZIE_CONF_DIR ; mkdir -p $OOZIE_CONF_DIR ; 
- Copy all the config files to - $OOZIE_CONF_DIRdirectory.
- Set appropriate permissions. - chown -R $OOZIE_USER:$HADOOP_GROUP $OOZIE_CONF_DIR/../ ; chmod -R 755 $OOZIE_CONF_DIR/../ ; 
where:
- $OOZIE_CONF_DIRis the directory to store Oozie configuration files. For example,- /etc/oozie/conf.
- $OOZIE_DATAis the directory to store the Oozie data. For example,- /var/db/oozie.
- $OOZIE_LOG_DIRis the directory to store the Oozie logs. For example,- /var/log/oozie.
- $OOZIE_PID_DIRis the directory to store the Oozie process ID. For example,- /var/run/oozie.
- $OOZIE_TMP_DIRis the directory to store the Oozie temporary files. For example,- /var/tmp/oozie.
- $OOZIE_USERis the user owning the Oozie services. For example,- oozie.
- $HADOOP_GROUPis a common group shared by services. For example,- hadoop.


