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

Ambari upgrade failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.2
    • ambari-sever
    • None

    Description

      Ambari upgrade would fail during the DMLStatements execution if there is no service definition in the stacks.
      For example: Customer database has entry for GANGLIA in alert_definition table but there is no stack definition - hence its getting failed with below exception.

      org.apache.ambari.server.AmbariException: Service not found, clusterName=comcastdrcluster, serviceName=GANGLIA 
      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:234) 
      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:424) 
      Caused by: org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=comcastdrcluster, serviceName=GANGLIA 
      at org.apache.ambari.server.state.cluster.ClusterImpl.getService(ClusterImpl.java:864) 
      at org.apache.ambari.server.api.services.AmbariMetaInfo.reconcileAlertDefinitions(AmbariMetaInfo.java:1240) 
      at org.apache.ambari.server.upgrade.UpdateAlertScriptPaths.executeDMLUpdates(UpdateAlertScriptPaths.java:46) 
      at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:938) 
      at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:231) 
      ... 1 more
      

      Attachments

        1. AMBARI-22419.trunk.patch
          9 kB
          Dmytro Grinenko
        2. AMBARI-22419.branch-2.6.patch
          9 kB
          Dmytro Grinenko

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              apappu@hortonworks.com amarnath reddy pappu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: