On Adding Oozie service to cluster, sometimes its possible user could see an error with simple message Failed to create new war file as below and on top of it Oozie server wouldn't start.
INFO: Adding extension: /usr/hdp/current/oozie-server/libext/mysql-jdbc-driver.jar
Failed: creating new Oozie WAR
Solution:
Oozie deployment script is trying to unzip the existing Oozie war file and then zip it back up and place it in a sub directory of /tmp/... . This unzip and zip process doubles the storage space required for the Oozie war file.
Make sure there is enough /tmp storage for the above process to take place, logs wouldn't provide this info.