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

Hive Metastore Upgrade Retry Fails Because Of Driver Copy Issue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: ambari-server
    • Labels:
      None

      Description

      Problem: During Rolling Upgrade, if Hive Metastore fails to restart, even after clicking Retry, Ambari cannot restart Hive Metastore. This situation can occur if Hive Metastore is using an external database (such as Oracle).
      Solution: During Rolling Upgrade, if Hive Metastore fails to restart, even after clicking Retry in the Rolling Upgrade Wizard, Ambari cannot restart Hive Metastore and displays the following error in Ambari:

      resource_management.core.exceptions.Fail: Execution of 'cp /usr/hdp/current/hive-metastore/lib/ojdbc.jar /usr/hdp/2.3.2.0-2943/hive/lib' returned 1. cp: '/usr/hdp/current/hive-metastore/lib/ojdbc.jar' and '/usr/hdp/2.3.2.0-2943/hive/lib/ojdbc.jar' are the same file
      

      In order to get Hive Metastore to restart, before clicking Retry again, go onto the Hive Metastore host and move HDP version back to the original.

      hdp-select set hive-metastore <original-hdp-version>
      

      After performing the hdp-select, click Retry and proceed with the Rolling Upgrade.

      1. AMBARI-13459.patch
        6 kB
        Jonathan Hurley

        Issue Links

          Activity

          Hide
          hadoopqa Hadoop QA added a comment -

          +1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12767104/AMBARI-13459.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          +1 tests included. The patch appears to include 1 new or modified test files.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in ambari-server.

          Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3991//testReport/
          Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3991//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12767104/AMBARI-13459.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 1 new or modified test files. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in ambari-server. Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3991//testReport/ Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3991//console This message is automatically generated.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #701 (See https://builds.apache.org/job/Ambari-branch-2.1/701/)
          AMBARI-13459 - Hive Metastore Upgrade Retry Fails Because Of Driver Copy (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f6cc06824b03c8bcf7396209593372fc930169d8)

          • ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
          • ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #701 (See https://builds.apache.org/job/Ambari-branch-2.1/701/ ) AMBARI-13459 - Hive Metastore Upgrade Retry Fails Because Of Driver Copy (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f6cc06824b03c8bcf7396209593372fc930169d8 ) ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-trunk-Commit #3663 (See https://builds.apache.org/job/Ambari-trunk-Commit/3663/)
          AMBARI-13459 - Hive Metastore Upgrade Retry Fails Because Of Driver Copy (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d8d19268a4c7078216d3a1dd3d589d9ff0cf23bb)

          • ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
          • ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-trunk-Commit #3663 (See https://builds.apache.org/job/Ambari-trunk-Commit/3663/ ) AMBARI-13459 - Hive Metastore Upgrade Retry Fails Because Of Driver Copy (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d8d19268a4c7078216d3a1dd3d589d9ff0cf23bb ) ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py

            People

            • Assignee:
              jonathan.hurley Jonathan Hurley
              Reporter:
              jonathan.hurley Jonathan Hurley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development