Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
Description
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
Reason:
As part of AMBARI-22472, a null check was missing, which caused NPE here.
Fix: Added NULL check.