11. Upgrading Oozie

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

  1. Run ooziedb.cmd as the Hadoop user.

    runas /user:hadoop "%OOZIE_HOME%\bin\ooziedb.cmd upgrade -run"
  2. Replace your configuration after upgrading. Copy oozie\conf from the backup to the oozie\conf directory on each server and client.

  3. Replace the content of /user/hadoop/share in HDFS. On the Oozie server host:

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

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

    2. Add the latest share libs.

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

  4. Start the Oozie service:

    sc start oozie

loading table of contents...