11. Upgrade Oozie

To upgrade Oozie, run the following commands as the hadoop user:

  1. Run ooziedb.cmd:

    runas /user:hadoop "%OOZIE_HOME%\bin\ooziedb.cmd upgrade -run"

  2. Replace your configuration: At each server and client, copy oozie\conf from the backup to the oozie\conf directory.

  3. Replace the contents of /user/hdfs/share in HDFS. At the Oozie server host:

    1. Back up the /user/hdfs/share folder in HDFS, and then delete it. If you have any custom files in this folder, back them up separately. Add them back after the share folder is updated.

      mkdir c:\tmp\oozie_tmp 
      runas /user:hadoop "cmd /c hdfs dfs -copyToLocal /user/hdfs/share c:\tmp\oozie_tmp\oozie_share_backup" 
      runas /user:hadoop "cmd /c hdfs dfs -rm -r /user/hdfs/share"

    2. Add the latest share libraries.

      runas /user:hadoop "cmd /c hdfs dfs -copyFromLocal
      %OOZIE_HOME%\share / user/hdfs/.

    3. Start the Oozie service:

      sc start oozie