Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 484CA17848 for ; Fri, 30 Oct 2015 01:59:34 +0000 (UTC) Received: (qmail 59235 invoked by uid 500); 30 Oct 2015 01:59:28 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 59197 invoked by uid 500); 30 Oct 2015 01:59:27 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 59162 invoked by uid 99); 30 Oct 2015 01:59:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 01:59:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AF29A2C033A for ; Fri, 30 Oct 2015 01:59:27 +0000 (UTC) Date: Fri, 30 Oct 2015 01:59:27 +0000 (UTC) From: "Jayush Luniya (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13635) Express Upgrade: HDP 2.2 -> HDP 2.3 upgrade blocked on Updating configuration ranger-hdfs-policymgr-ssl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jayush Luniya updated AMBARI-13635: ----------------------------------- Attachment: AMBARI-13635.patch > Express Upgrade: HDP 2.2 -> HDP 2.3 upgrade blocked on Updating configuration ranger-hdfs-policymgr-ssl > ------------------------------------------------------------------------------------------------------- > > Key: AMBARI-13635 > URL: https://issues.apache.org/jira/browse/AMBARI-13635 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.3 > Reporter: Dmitry Lysnichenko > Assignee: Jayush Luniya > Fix For: 2.1.3 > > Attachments: AMBARI-13635.patch, AMBARI-13635.patch > > > HDP 2.2 -> HDP 2.3 express upgrade gets blocked at step "Updating configuration ranger-hdfs-policymgr-ssl". > {noformat} > java.lang.NullPointerException > at org.apache.ambari.server.serveraction.upgrades.ConfigureAction.execute(ConfigureAction.java:232) > at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(ServerActionExecutor.java:537) > at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.run(ServerActionExecutor.java:474) > at java.lang.Thread.run(Thread.java:745) > {noformat} > 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. > {code} > Map desiredConfigs = cluster.getDesiredConfigs(); > DesiredConfig desiredConfig = desiredConfigs.get(configType); > Config config = cluster.getConfig(configType, desiredConfig.getTag()); > {code} > Following difference in _UpgradeResourceProvider.java_ between RU and EU seems to be the root cause > {code} > /** > 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, pack); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)