Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCFBB18AFD for ; Thu, 4 Jun 2015 09:04:30 +0000 (UTC) Received: (qmail 85814 invoked by uid 500); 4 Jun 2015 09:04:30 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 85774 invoked by uid 500); 4 Jun 2015 09:04:30 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 85759 invoked by uid 99); 4 Jun 2015 09:04:30 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2015 09:04:30 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id A7CE91DF461; Thu, 4 Jun 2015 09:04:29 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6403774305525722505==" MIME-Version: 1.0 Subject: Re: Review Request 35042: Hive Upgrade Fails Because Of Missing Database Library From: "Nate Cole" To: "Alejandro Fernandez" , "Nate Cole" Cc: "Ambari" , "Jonathan Hurley" Date: Thu, 04 Jun 2015 09:04:29 -0000 Message-ID: <20150604090429.7997.82778@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Nate Cole" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/35042/ X-Sender: "Nate Cole" References: <20150604015231.7996.88588@reviews.apache.org> In-Reply-To: <20150604015231.7996.88588@reviews.apache.org> Reply-To: "Nate Cole" X-ReviewRequest-Repository: ambari --===============6403774305525722505== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/35042/#review86579 ----------------------------------------------------------- Requires test coverage. - Nate Cole On June 3, 2015, 9:52 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/35042/ > ----------------------------------------------------------- > > (Updated June 3, 2015, 9:52 p.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 > ----- > > 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 > > --===============6403774305525722505==--