ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-13635) Express Upgrade: HDP 2.2 -> HDP 2.3 upgrade blocked on Updating configuration ranger-hdfs-policymgr-ssl
Date Thu, 29 Oct 2015 15:28:27 GMT
Dmitry Lysnichenko created AMBARI-13635:

             Summary: Express Upgrade: HDP 2.2 -> HDP 2.3 upgrade blocked on Updating configuration
                 Key: AMBARI-13635
             Project: Ambari
          Issue Type: Bug
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
         Attachments: AMBARI-13635.patch

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,

This message was sent by Atlassian JIRA

View raw message