To upgrade Oozie, run the following commands as the hadoop user:
Run
ooziedb.cmdas the Hadoop user.runas /user:hadoop "%OOZIE_HOME%\bin\ooziedb.cmd upgrade -run"
Replace your configuration after upgrading. Copy
oozie\conffrom the backup to theoozie\confdirectory on each server and client.Replace the content of
/user/hadoop/sharein HDFS. On the Oozie server host:Back up the
/user/hadoop/share folderin 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"
Add the latest share libs.
runas /user:hadoop "cmd /c hdfs dfs -copyFromLocal %OOZIE_HOME%\share /user/hadoop/.
Start the Oozie service:
sc start oozie

