ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swapan Shridhar" <sshrid...@hortonworks.com>
Subject Re: Review Request 40098: Stop-and-Start Upgrade: Fix for Oozie Express upgrade issues from HDP 2.1 to 2.3
Date Thu, 12 Nov 2015 21:13:22 GMT

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

(Updated Nov. 12, 2015, 9:13 p.m.)


Review request for Ambari and Alejandro Fernandez.


Changes
-------

Patch for "Liscence Section comment missing." Attached as a file.


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


Repository: ambari


Description
-------

Stop-and-Start Upgrade: Fix for Oozie Express upgrade issues from HDP 2.1 to 2.3


Problem : Unable to start Ozzie server while on upgrade from HDP 2.1 -> 2.3.

Reason : As 2.3 has symlinks instead of directory structure for "/etc/oozie/conf" and "usr/hdp/current/oozie-*/conf".
* -> "server" or "client"

The symlinks are not properly set for Ozzie Server and client after the upgrade.

Resolution : Added a new class and comamnd "CONFIGURE_FUNCTION" to get the sym links working.

After the upgrade, the symlinks are :

================================================
/etc/oozie/conf -> /etc/oozie/2.3.4.0-3204/0
/usr/hdp/current/oozie-server/conf -> /etc/oozie/2.3.4.0-3204/0
================================================


P.S. The changes are generic in "conf_select" for setting the sym links. Thus, other services
also should be having their 
symlinks working in 2.1->2.3 upgrade path.


Diffs
-----

  ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py 620f021

  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
9ba5a22 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
915e431 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ConfigureFunction.java
PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6

  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapper.java
2ea3671 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Task.java f443e53

  ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
f35df93 
  ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8


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


Testing
-------

- Upgrade from HDP 2.1 -> 2.3 successful. Oozie Servier and UI working fine.
- 
- Unit test cases : run. Successful.
----------------------------------------------------------------------
Ran 249 tests in 6.416s

OK
----------------------------------------------------------------------
Total run:828
Total errors:0
Total failures:0
OK


File Attachments (updated)
----------------

Patch for "Liscence section comment missing"
  https://reviews.apache.org/media/uploaded/files/2015/11/12/d4cdc58a-1aa5-4109-b6ec-2a61676d7ce9__AMBARI-13824.patch


Thanks,

Swapan Shridhar


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message