ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayush Luniya <jlun...@hortonworks.com>
Subject Re: Review Request 43501: RU/EU: Upgrading Oozie database fails since new configs are not yet written to /usr/hdp/current/oozie-server/conf
Date Thu, 11 Feb 2016 22:40:58 GMT

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


Ship it!




Fix ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml and
ship

- Jayush Luniya


On Feb. 11, 2016, 9:19 p.m., Alejandro Fernandez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43501/
> -----------------------------------------------------------
> 
> (Updated Feb. 11, 2016, 9:19 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan Hurley, Jayush
Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-15004
>     https://issues.apache.org/jira/browse/AMBARI-15004
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Prepare Oozie Server fails at upgrade_oozie_database_and_sharelib() step. 
> Oozie is a special case. In PRE-UPGRADE phase we perform the following steps
> 
> 1. Stop all Oozie Servers
> 2. On one Oozie Server execute upgrade_oozie_database_and_sharelib step to create the
Oozie DB and Sharelib.
> The step upgrade_oozie_database_and_sharelib() invokes
> 
> /usr/hdp/{new_version}/oozie/bin/ooziedb.sh upgrade -run
> 
> However, we still haven't executed conf-select, hdp-select, and generated configs, which
happens in UPGRADE phase at pre_upgrade_restart() step leading to upgrade db step to fail.
> 
> I tried modifying the upgrade_oozie_database_and_sharelib() function to generate the
configs, but it is a custom command that is called and cannot correctly import the templates
since it first calls ru
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ClusterGrouping.java
5e21da5 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ExecuteHostType.java
b36dca4 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/TaskWrapperBuilder.java
81a3a4d 
>   ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
dc00b13 
>   ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
4d68f03 
>   ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/params_linux.py
66ea832 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
084a0c5 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml
f12aa18 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
67c2d3d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.4.xml
d31914f 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 9fbe235 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 750b8b4 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.4.xml c9fabb2 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml
19e9601 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.4.xml
3500eea 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 77dcfae 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.4.xml 32e3764 
>   ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/nonrolling-upgrade-2.4.xml
3863877 
>   ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/upgrade-2.4.xml e45e851 
> 
> Diff: https://reviews.apache.org/r/43501/diff/
> 
> 
> Testing
> -------
> 
> Verified during RU and EU from HDP 2.2 to 2.3 with Oozie, including downgrade.
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>


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