1. Install the Oozie RPMs

Prerequisites

  1. You must have at least core Hadoop on your system. See Configure the Remote Repository for more information.

  2. Verify the HDP repositories are available:

    yum list oozie

    The output should list at least one Oozie package similar to the following:

    oozie.noarch <version>

    If yum responds with "Error: No matching package to list" as shown below, yum cannot locate a matching RPM. This can happen if the repository hosting the HDP RPMs is unavailable, or has been disabled. Follow the instructions at Configure the Remote Repository to configure either a public or private repository before proceeding.

    Error: No matching package to list.

Installation

  1. On the Oozie server, install the necessary RPM.

    yum install oozie 
  2. Optional - Enable the Oozie web console:

    • Add the ExtJS library to the Oozie web application.

      yum install extjs-2.2-1 
    • Rebuild the Oozie WAR file to include the ExtJS library.

      /usr/lib/oozie/bin/oozie-setup.sh -hadoop 0.20.200 /usr/lib/hadoop -extjs 
      /usr/share/HDP-oozie/ext-2.2.zip
      
    • Rebuild the Oozie WAR file to include the LZO JAR file.

      /usr/lib/oozie/bin/oozie-setup.sh -hadoop 2.x /usr/lib/hadoop -extjs 
      /usr/share/HDP-oozie/ext-2.2.zip -jars
      /usr/lib/hadoop/lib/hadoop-lzo-0.5.0.jar
      
  3. Optional - Download and add the database connector JAR.

    • For MySQL:

      1. Execute the following command on the Oozie server machine:

        • For RHEL/CentOS:

          yum install mysql-connector-java

        • For SLES:

          zypper install mysql-connector-java
      2. Execute the following command on your Oozie server machine to include the MySQL Connector JAR file:

        /usr/lib/oozie/bin/oozie-setup.sh -hadoop 2.x /usr/lib/hadoop -extjs  
        /usr/share/HDP-oozie/ext-2.2.zip -jars 
        /usr/lib/hadoop/lib/hadoop-lzo-0.5.0.jar:/usr/share/java/mysql-connector-java.jar
      3. Verify that the JAR file has appropriate permissions.

    • For Oracle: Note that the following instructions are for OJDBC driver for Oracle 11g.

      1. Download the Oracle JDBC (OJDBC) driver from here.

      2. Copy the JAR file to /usr/lib/oozie/libtools/.

      3. Verify that the JAR file has appropriate permissions.

    • For PostgreSQL:

      1. Execute the following command on the Oozie metastore machine:

        • For RHEL/CentOS:

          yum install postgresql-jdbc
        • For SLES:

          zypper install postgresql-jdbc
      2. Copy the downloaded JAR file to $OOZIE_HOME/lib directory.

        $OOZIE_HOME is by default set to /usr/lib/oozie/.

      3. Verify that the JAR file has appropriate permissions.


loading table of contents...