-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36076/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez and Nate Cole.


Bugs: AMBARI-12228
    https://issues.apache.org/jira/browse/AMBARI-12228


Repository: ambari


Description
-------

Here is an example of the new orchestration for an upgrade from 2.2 to 2.3

- Before Upgrade Begins
-# Execute a custom script to stop all oozie servers, one at a time
-# Execute the database upgrade using the 2.3 bits
-# Execute the sharelib creation and upload using the 2.3 bits

- For each Oozie server, which is currently down
-# backup the oozie configurations
-# conf-select and hdp-select
-# restore configurations
-# Prepare /usr/hdp/current/oozie/libext-customer and gets ready to upgrade the 
WAR
-# {oozie_setup_sh} prepare-war {oozie_secure} -d {oozie_libext_customer_dir}
-# Start the Oozie server

On a downgrade, we will perform a similar series of steps, except a few 
differences:
- No database upgrade will be performed
- The bits used to generate the sharelib are going to be the downgrade stacks, 
ie 2.2


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ExecuteTask.java
 59af413 
  
ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/TaskWrapperBuilder.java
 719078f 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
 611046e 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
 9d348e1 
  
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
 4b455c0 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 
3a5033d 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 
d4d4266 
  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 
ad785e9 
  ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py b92f6fa 
  ambari-server/src/test/python/stacks/2.2/configs/oozie-upgrade.json f0798c8 

Diff: https://reviews.apache.org/r/36076/diff/


Testing
-------

mvn clean test

Oozie upgrade from HDP 2.2 to 2.3


Thanks,

Jonathan Hurley

Reply via email to