To upgrade Oozie, run the following commands as the hadoop
user:
Run
ooziedb.cmd
as the Hadoop user.runas /user:hadoop "%OOZIE_HOME%\bin\ooziedb.cmd upgrade -run"
Replace your configuration after upgrading. Copy
oozie\conf
from the backup to theoozie\conf
directory on each server and client.Replace the content of
/user/hadoop/share
in HDFS. On the Oozie server host: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"
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