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

NPE during Ambari server schema upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-upgrade

    Description

      Ambari server upgrade path: 2.2.2.0 to 2.5.0.0-453
      Error seen while running 'ambari-server upgrade' command"

      Using python  /usr/bin/python
      Upgrading ambari-server
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Upgrade Ambari Server
      INFO: Updating Ambari Server properties in ambari.properties ...
      INFO: Updating Ambari Server properties in ambari-env.sh ...
      WARNING: Original file ambari-env.sh kept
      WARNING: Original file krb5JAASLogin.conf kept
      INFO: File krb5JAASLogin.conf updated.
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: No mpack replay logs found. Skipping replaying mpack commands
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Fixing database objects owner
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: using SERVICE_NAME instead of SID for Oracle
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      Ambari Server configured for Oracle. Confirm you have made a backup of the Ambari Server database [y/n] (y)? INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: using SERVICE_NAME instead of SID for Oracle
      INFO: Upgrading database schema
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
      INFO: using SERVICE_NAME instead of SID for Oracle
      INFO: using SERVICE_NAME instead of SID for Oracle
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
      INFO: about to run command: /usr/jdk64/jdk1.7.0_67/bin/java -cp '/etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/ojdbc6.jar' org.apache.ambari.server.upgrade.SchemaUpgradeHelper > /var/log/ambari-server/ambari-server.out 2>&1
      INFO: Return code from schema upgrade command, retcode = 1
      ERROR: Error executing schema upgrade, please check the server logs.
      ERROR: Error output from schema upgrade command:
      ERROR: Exception in thread "main" org.apache.ambari.server.AmbariException
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:209)
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:424)
      Caused by: java.lang.NullPointerException
      	at com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:70)
      	at com.google.inject.persist.jpa.AmbariJpaPersistService.begin(AmbariJpaPersistService.java:29)
      	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:106)
      	at org.apache.ambari.server.upgrade.UpgradeCatalog240.executeDDLUpdates(UpgradeCatalog240.java:294)
      	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:938)
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:206)
      	... 1 more
      
      
      ERROR: Ambari server upgrade failed. Please look at /var/log/ambari-server/ambari-server.log, for more details.
      ERROR: Exiting with exit code 11. 
      REASON: Schema upgrade failed.
      

      Attachments

        1. AMBARI-19170_branch-2.5.patch
          1 kB
          Attila Doroszlai
        2. AMBARI-19170_trunk.patch
          1 kB
          Attila Doroszlai

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              shavi71 Vivek Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: