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

Ambari schema upgrade from any version older than 2.5.1 fails due to incorrect version check

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-server

    Description

      Perform an upgrade from Ambari version older than 2.5.1 (like 2.5.0 or 2.4.x) to 2.6.0

      Fails with below error

      12 Sep 2017 02:16:35,727  INFO [main] TransactionalLock$LockArea:121 - LockArea HRC_STATUS_CACHE is enabled
      12 Sep 2017 02:16:36,091  INFO [main] LockFactory:53 - Lock profiling is disabled
      12 Sep 2017 02:16:36,112  INFO [main] SchemaUpgradeHelper:391 - Upgrading schema to target version = 2.6.0.0
      12 Sep 2017 02:16:36,115  INFO [main] SchemaUpgradeHelper:400 - Upgrading schema from source version = 2.5.0
      12 Sep 2017 02:16:36,118 ERROR [main] SchemaUpgradeHelper:434 - Exception occurred during upgrade, failed
      org.apache.ambari.server.AmbariException: Database version does not meet minimal upgrade requirements. Expected version should be not less than 2.5.1, current version is 2.5.0
              at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:405)
      12 Sep 2017 02:16:40,419  INFO [main] Configuration:3044 - Reading password from existing file
      12 Sep 2017 02:16:40,439  INFO [main] Configuration:3529 - Hosts Mapping File null
      12 Sep 2017 02:16:40,439  INFO [main] HostsMap:60 - Using hostsmap file null
      12 Sep 2017 02:16:41,290  INFO [main] ControllerModule:221 - Detected MYSQL as the database type from the JDBC URL
      

      Attachments

        1. AMBARI-21940.patch
          226 kB
          Dmitry Lysnichenko
        2. AMBARI-21940.patch
          226 kB
          Dmitry Lysnichenko

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dmitriusan Dmitry Lysnichenko
            shavi71 Vivek Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment