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

Ambari fails to upgrade from 2.4.2.0 to 2.5.1.0 during schema upgrade with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.1
    • 2.5.1
    • ambari-server
    • None

    Description

      On trying to upgrade ambari from 2.4.2.0 to 2.5.1.0 upgrade is failing with nullPointerException during ambari schema upgrade

      20 Apr 2017 05:55:01,410 ERROR [main] SchemaUpgradeHelper:257 - Upgrade failed.
      java.lang.NullPointerException
              at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateMetaInfoVersion(AbstractUpgradeCatalog.java:272)
              at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
              at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateDatabaseSchemaVersion(AbstractUpgradeCatalog.java:949)
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeOnPostUpgrade(SchemaUpgradeHelper.java:255)
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:433)
      20 Apr 2017 05:55:01,413 ERROR [main] SchemaUpgradeHelper:444 - Exception occurred during upgrade, failed
      org.apache.ambari.server.AmbariException
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeOnPostUpgrade(SchemaUpgradeHelper.java:258)
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:433)
      Caused by: java.lang.NullPointerException
              at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateMetaInfoVersion(AbstractUpgradeCatalog.java:272)
              at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
              at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.updateDatabaseSchemaVersion(AbstractUpgradeCatalog.java:949)
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeOnPostUpgrade(SchemaUpgradeHelper.java:255)
              ... 1 more
      

      Attachments

        1. AMBARI-20799.patch
          10 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              nayakmahesh616 Mahesh Nayak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: