Post-Upgrade Steps for Oozie

After you upgrade Oozie with the MapR Installer, perform the following steps.

About this task

Procedure

  1. Migrate Oozie Configuration (optional).
    Migrate any custom configuration settings into the new default files in the conf directory (/opt/mapr/oozie/oozie-<version>/conf/). For example, if you use a MySQL database with Oozie, make sure that the oozie-site.xml contains the correct properties for MySQL.
  2. For upgrades from Oozie 4.0.x to Oozie 4.2.0, run the following command to upgrade the database schema:
    # /opt/mapr/oozie/oozie-<version>/bin/ooziedb.sh upgrade -run
  3. If your Oozie installation is configured to use a MySQL or Oracle database and you selected a new Oozie version:
    1. Copy the JDBC driver jar file to the following directory:
      /opt/mapr/oozie/oozie-<oozie version>/libext
    2. Run the following command to upgrade the database schema:
      # /opt/mapr/oozie/oozie-<version>/bin/ooziedb.sh upgrade -run
      NOTE: This step is not required if you ran this command in step 2.
    3. Execute the oozie-setup.sh script to add the driver jar file to the Oozie WAR file:
      # sudo /opt/mapr/oozie/oozie-<version>/bin/oozie-setup.sh -hadoop <version>
            /opt/mapr/hadoop/hadoop-<version> prepare-war -extjs /tmp/ext-2.2.zip
  4. Start any Oozie coordinators that you stopped before the upgrade.
  5. As of Oozie 4.1.0-1601 and Oozie 4.2.0-1601, if the oozie.service.WorkflowAppService.system.libpath property in oozie-site.xml does not use the default value (/oozie/share/), you must run perform the following steps to update the shared libraries:
    1. Based on the cluster MapReduce mode, run one of the following commands to copy the new Oozie shared libraries to MapR-FS:
      Cluster MapReduce Mode Command
      YARN
      sudo -u mapr {OOZIE_HOME}/bin/oozie-setup.sh sharelib create -fs maprfs:/// -locallib /opt/mapr/oozie/oozie-<version>/share2
      Classic
      sudo -u mapr {OOZIE_HOME}/bin/oozie-setup.sh sharelib create -fs maprfs:/// -locallib /opt/mapr/oozie/oozie-<version>/share1
    2. Run the following command to update the Oozie classpath with the new shared libraries:
      sudo -u mapr {OOZIE_HOME}/bin/oozie admin -sharelibupdate