You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2015/11/25 18:26:11 UTC

[jira] [Created] (AMBARI-14073) Hive Metastore Downgrade Fails Because Of upgradeSchema Invocation

Jonathan Hurley created AMBARI-14073:
----------------------------------------

             Summary: Hive Metastore Downgrade Fails Because Of upgradeSchema Invocation
                 Key: AMBARI-14073
                 URL: https://issues.apache.org/jira/browse/AMBARI-14073
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.3
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.1.3


When downgrading Hive Metastore on a rolling upgrade, the upgradeSchema function is invoked when it should not be.

{code}
Traceback (most recent call last):
  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", line 239, in <module>
    HiveMetastore().execute()
  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", line 218, in execute
    method(env)
  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", line 497, in restart
    self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", line 112, in pre_upgrade_restart
    self.upgrade_schema(env)
  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\", line 235, in upgrade_schema
    Execute(command, user=params.hive_user, tries=1, environment=env_dict, logoutput=True)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 154, in __init__
    self.env.run()
  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", line 158, in run
    self.run_action(resource, action)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", line 121, in run_action
    provider_action()
  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\", line 238, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 70, in inner
    result = function(command, **kwargs)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/hdp/2.2.8.0-3150/hive/bin/schematool -dbType mysql -upgradeSchema' returned 1. org.apache.hadoop.hive.metastore.HiveMetaException: Unknown version specified for upgrade 1.2.0 Metastore schema may be too old or newer
*** schemaTool failed ***
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)