-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35042/
-----------------------------------------------------------

(Updated June 4, 2015, 10:32 a.m.)


Review request for Ambari, Alejandro Fernandez and Nate Cole.


Bugs: AMBARI-11675
    https://issues.apache.org/jira/browse/AMBARI-11675


Repository: ambari


Description
-------

Hive rolling upgrade failed during the RESTART HIVE/HIVE_METASTORE, here is the 
log in the panel:
{noformat}
2015-06-03 01:01:16,274 - Deleting File['/var/run/hive/hive.pid']
2015-06-03 01:01:16,274 - Executing Metastore Rolling Upgrade pre-restart
2015-06-03 01:01:16,277 - Upgrading Hive Metastore
2015-06-03 01:01:16,280 - Execute['/usr/hdp/2.3.0.0-2208/hive/bin/schematool 
-dbType mysql -upgradeSchema'] {'logoutput': True, 'environment': 
{'HIVE_CONF_DIR': '/etc/hive/conf.server'}, 'tries': 1, 'user': 'hive'}
WARNING: Use "yarn jar" to launch YARN applications.
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
*** schemaTool failed ***
{noformat}
Basically the new Hive directory /usr/hdp/2.3.0.0-2208/hive/lib does not have 
the connector jar and so the schemaTool command fails. We should copy over the 
connector jar in the new directory before triggering the schemaTool command.


Diffs (updated)
-----

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
 1813ee3 
  ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py b97fa34 

Diff: https://reviews.apache.org/r/35042/diff/


Testing
-------

----------------------------------------------------------------------
Total run:750
Total errors:0
Total failures:0
OK


Thanks,

Jonathan Hurley

Reply via email to