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

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

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

          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #9835 (See https://builds.apache.org/job/Ambari-trunk-Commit/9835/)
          AMBARI-24473. Ambari upgrade fails due to NPE when processing Ambari (github: https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=b73f84c9c32cfca28ad012960d0049af98ce65ed)

          • (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #9835 (See https://builds.apache.org/job/Ambari-trunk-Commit/9835/ ) AMBARI-24473 . Ambari upgrade fails due to NPE when processing Ambari (github: https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=b73f84c9c32cfca28ad012960d0049af98ce65ed ) (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #172 (See https://builds.apache.org/job/Ambari-branch-2.7/172/)
          AMBARI-24473. Ambari upgrade fails due to NPE when processing Ambari (github: https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=45ac4476c4d467eeb8df2d63419ceb59acd41387)

          • (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #172 (See https://builds.apache.org/job/Ambari-branch-2.7/172/ ) AMBARI-24473 . Ambari upgrade fails due to NPE when processing Ambari (github: https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=45ac4476c4d467eeb8df2d63419ceb59acd41387 ) (edit) ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java

          People

            oleewere Oliver Szabo
            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