ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley" <>
Subject Re: Review Request 39731: Express Upgrade: ZKFC Cannot Stop Because Newer Configurations Don't Exist
Date Wed, 28 Oct 2015 22:49:32 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 28, 2015, 6:49 p.m.)

Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.

Bugs: AMBARI-13615

Repository: ambari


During an express upgrade, components are stopped ahead of time. Before {{restart}} is invoked,
the following task runs updating all hdp pointers:

    <group xsi:type="cluster" name="RESTORE_CONFIG_DIRS" title="Restore Configuration Directories">
      <execute-stage title="Restore configuration directories and remove HDP 2.3 symlinks">
        <task xsi:type="execute">

After this, all components begin to restart. However, restarting involves a {{stop}} and a
{{start}} command. The components are already stopped and most of them have logic that says
if the PID says it's not running, then don't stop it twice.

However, some components like ZKFC and HBase Master don't have this logic and try stopping
it regardless. The problem arises when a JVM is spun up to stop the process:

Initially it was though that moving the {{hdp-select set all}} to after the {{restart}} groups
would solve the problem. As it turns out, moving the {{hdp-select set all}} doesn't work since
the {{}} it always taking the new version and building conf/lib/bin directories with
it. Additionally, some components have upgrade bugs which calling {{hdp-select set all}} corrects.

Diffs (updated)

  ambari-common/src/main/python/resource_management/libraries/functions/ 5f05777

  ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml 25fd6ab

  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml 63f9f8d

  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml 44413d3

  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml 407b22b

  ambari-server/src/test/python/stacks/2.0.6/HDFS/ 263eeb2 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ a6cd740 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ 21b71f9 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ 5852eaf 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ dfbd887 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ 744d3ba 
  ambari-server/src/test/python/stacks/2.1/HIVE/ 2800224 
  ambari-server/src/test/python/stacks/utils/ ab4eed4 



Upgrades from 2.2 to 2.3, and 2.3 to 2.3+ with ZKFC. 

mvn clean test


Jonathan Hurley

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