To upgrade Oozie, run the following commands as the hadoop
user:
Run
ooziedb.cmd
:runas /user:hadoop "%OOZIE_HOME%\bin\ooziedb.cmd upgrade -run"
Replace your configuration: At each server and client, copy
oozie\conf
from the backup to theoozie\conf
directory.Replace the contents of
/user/hdfs/share
in HDFS. At the Oozie server host: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"
Add the latest share libraries.
runas /user:hadoop "cmd /c hdfs dfs -copyFromLocal %OOZIE_HOME%\share / user/hdfs/.
Start the Oozie service:
sc start oozie