Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24473

Ambari upgrade fails due to NPE when processing Ambari Infra kerberos descriptor changes

    XMLWordPrintableJSON

    Details

      Description

      Ambari upgrade fails due to NPE when processing Ambari Infra changes

      2018-07-17 01:57:48,282 ERROR [main] SchemaUpgradeHelper:238 - Upgrade failed.
      java.lang.NullPointerException
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.updateInfraKerberosDescriptor(UpgradeCatalog270.java:1282)
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.updateKerberosDescriptorArtifact(UpgradeCatalog270.java:1202)
                      at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateKerberosDescriptorArtifacts(AbstractUpgradeCatalog.java:797)
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.executeDMLUpdates(UpgradeCatalog270.java:1052)
                      at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:985)
                      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:236)
                      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:456)
      2018-07-17 01:57:48,282 ERROR [main] SchemaUpgradeHelper:473 - Exception occurred during upgrade, failed
      org.apache.ambari.server.AmbariException
                      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:239)
                      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:456)
      Caused by: java.lang.NullPointerException
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.updateInfraKerberosDescriptor(UpgradeCatalog270.java:1282)
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.updateKerberosDescriptorArtifact(UpgradeCatalog270.java:1202)
                      at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateKerberosDescriptorArtifacts(AbstractUpgradeCatalog.java:797)
                      at org.apache.ambari.server.upgrade.UpgradeCatalog270.executeDMLUpdates(UpgradeCatalog270.java:1052)
                      at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:985)
                      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:236)
                      ... 1 more
      

      This appears to be due to a failure to handle the case where no component-level Kerberos descriptors are supplied for a service in the user-supplied Kerberos descriptor. Since the user-supplied Kerberos descriptor can be sparse, missing normally expected pieces of the Kerberos descriptor is acceptable.

        Attachments

          Activity

            People

            • Assignee:
              oleewere Oliver Szabo
              Reporter:
              oleewere Oliver Szabo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m