ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley" <jhur...@hortonworks.com>
Subject Review Request 35042: Hive Upgrade Fails Because Of Missing Database Library
Date Thu, 04 Jun 2015 01:52:31 GMT

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

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
-----

  ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
1813ee3 

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


Testing
-------

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


Thanks,

Jonathan Hurley


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message