ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <>
Subject Review Request 39761: [preview] Express Upgrade: HDP 2.2 -> HDP 2.3 upgrade blocked on Updating configuration ranger-hdfs-policymgr-ssl
Date Thu, 29 Oct 2015 15:32:04 GMT

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

Review request for Ambari, Alejandro Fernandez, Dmytro Grinenko, Jonathan Hurley, Jayush Luniya,
and Nate Cole.

Bugs: AMBARI-13635

Repository: ambari


HDP 2.2 -> HDP 2.3 express upgrade gets blocked at step "Updating configuration ranger-hdfs-policymgr-ssl".

at org.apache.ambari.server.serveraction.upgrades.ConfigureAction.execute(
at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(
at org.apache.ambari.server.serveraction.ServerActionExecutor$

The NPE is because _ranger-hdfs-policymgr-ssl_ is a new config type in HDP 2.3 and so the
desiredconfig returned in _ConfigureAction_ is null as this config-type does not exist.

Map<String, DesiredConfig> desiredConfigs = cluster.getDesiredConfigs();
DesiredConfig desiredConfig = desiredConfigs.get(configType);
Config config = cluster.getConfig(configType, desiredConfig.getTag());

Following difference in _UpgradeResourceProvider.java_ between RU and EU seems to be the root

During a Rolling Upgrade, change the desired Stack Id if jumping across
major stack versions (e.g., HDP 2.2 -> 2.3), and then set config changes
so they are applied on the newer stack.

During a {@link UpgradeType.NON_ROLLING} upgrade, the stack is applied during the middle of
the upgrade (after
stopping all services), and the configs are applied immediately before starting the services.
The Upgrade Pack is responsible for calling {@link org.apache.ambari.server.serveraction.upgrades.UpdateDesiredStackAction}
at the appropriate moment during the orchestration.
if (pack.getType() == UpgradeType.ROLLING) {
// Desired configs must be set before creating stages because the config tag
// names are read and set on the command for filling in later
applyStackAndProcessConfigurations(targetStackId.getStackName(), cluster, version, direction,





Trying to check EU 2.2->2.3 on live cluster with ranger

Broken unit tests pending.


Dmitro Lisnichenko

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