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

Ambari upgrade/start commands should detect any ambari-server hotfix and fail upgrade/start from proceeding

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.2.2
    • ambari-server
    • None

    Description

      If user copied hotfixed ambari-server.jar to /usr/lib/ambari-server and didn't remove the hotfix, the upgrade will fails with error:

      Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
      Exception Description: [class org.apache.ambari.server.orm.entities.HostEntity] uses a non-entity [class org.apache.ambari.server.orm.entities.HostVersionEntity] as target entity in the relationship attribute [field hostVersionEntities].
              at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954)
              at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945)
              at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:98)
              at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:96)
              ... 15 more
      Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [ambari-server] failed.
      

      As a workaround, user needs to restore all the database and configuration, remove all the hotfix and run "ambari-server upgrade" again.

      Attachments

        1. AMBARI-15348-trunk_8.patch
          12 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: