[ https://issues.apache.org/jira/browse/AMBARI-22517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266518#comment-16266518 ]
Swapan Shridhar commented on AMBARI-22517: ------------------------------------------ commit {code:title=branch-2.6} commit c6825e913b7f0421b88c8753d73ead0025c6031c Author: Swapan Shridhar <sshrid...@hortonworks.com> Date: Mon Nov 27 00:07:15 2017 -0800 AMBARI-22517. NPE during Ambari schema upgrade while updating Hive configs. {code} {code:title=trunk} commit c9936ad349e3e703dcbf6f2a1644f8a3e45a23d0 Author: Swapan Shridhar <sshrid...@hortonworks.com> Date: Mon Nov 27 00:47:57 2017 -0800 AMBARI-22517. NPE during Ambari schema upgrade while updating Hive configs. {code} > NPE during Ambari schema upgrade while updating Hive configs > ------------------------------------------------------------ > > Key: AMBARI-22517 > URL: https://issues.apache.org/jira/browse/AMBARI-22517 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.6.0 > Reporter: Swapan Shridhar > Assignee: Swapan Shridhar > Fix For: 2.6.1 > > Attachments: AMBARI-22517.patch > > > {code:title=NPE trace} > 24 Nov 2017 08:27:21,310 INFO [main] UpgradeCatalog260:820 - Removing > ssl.client.truststore.alias from ams-ssl-client > 24 Nov 2017 08:27:21,316 INFO [main] AbstractUpgradeCatalog:573 - Applying > configuration with tag 'version1511512041310' and configType 'ams-ssl-client' > to cluster 'cl1' > 24 Nov 2017 08:27:21,365 INFO [main] AbstractUpgradeCatalog:595 - cluster > 'cl1' changed by: 'ambari-upgrade'; type='ams-ssl-client' > tag='version1511512041310' from='TOPOLOGY_RESOLVED' > 24 Nov 2017 08:27:21,368 ERROR [main] SchemaUpgradeHelper:233 - Upgrade > failed. > java.lang.NullPointerException > at > org.apache.ambari.server.upgrade.UpgradeCatalog260.updateHiveConfigs(UpgradeCatalog260.java:778) > at > org.apache.ambari.server.upgrade.UpgradeCatalog260.executeDMLUpdates(UpgradeCatalog260.java:515) > at > org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:938) > at > org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:231) > at > org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:424) > 24 Nov 2017 08:27:21,371 ERROR [main] SchemaUpgradeHelper:437 - Exception > occurred during upgrade, failed > org.apache.ambari.server.AmbariException > at > org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:234) > at > org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:424) > Caused by: java.lang.NullPointerException > at > org.apache.ambari.server.upgrade.UpgradeCatalog260.updateHiveConfigs(UpgradeCatalog260.java:778) > at > org.apache.ambari.server.upgrade.UpgradeCatalog260.executeDMLUpdates(UpgradeCatalog260.java:515) > at > org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:938) > at > org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:231) > ... 1 more > 24 Nov 2017 08:27:23,019 INFO [main] Configuration:3048 - Reading password > from existing file > 24 Nov 2017 08:27:23,031 INFO [main] Configuration:3542 - Hosts Mapping File > null > {code} > *Error Line :* > https://github.com/hortonworks/ambari/commit/af5c8d9d22c64039f35ff959a7a6bc4b48a7f97b#diff-d64149d54be0b8bef5315a5f8844379cR778 > *Reason:* > As part of AMBARI-22472, a null check was missing, which caused NPE here. > *Fix*: Added NULL check. -- This message was sent by Atlassian JIRA (v6.4.14#64029)