Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8851200B21 for ; Thu, 26 May 2016 15:59:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7599160A17; Thu, 26 May 2016 13:59:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D2688160A18 for ; Thu, 26 May 2016 15:59:14 +0200 (CEST) Received: (qmail 18593 invoked by uid 500); 26 May 2016 13:59:13 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 18097 invoked by uid 99); 26 May 2016 13:59:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 13:59:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 18A542C1F68 for ; Thu, 26 May 2016 13:59:13 +0000 (UTC) Date: Thu, 26 May 2016 13:59:13 +0000 (UTC) From: "Andrii Tkach (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-16020) Hive Metastore install failed since mysql-server not installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 May 2016 13:59:16 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrii Tkach updated AMBARI-16020: ---------------------------------- Attachment: (was: AMBARI-16020_2.patch) > Hive Metastore install failed since mysql-server not installed > -------------------------------------------------------------- > > Key: AMBARI-16020 > URL: https://issues.apache.org/jira/browse/AMBARI-16020 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.4.0 > Reporter: Andrii Tkach > Assignee: Andrii Tkach > Priority: Critical > Fix For: 2.4.0 > > Attachments: AMBARI-16020.patch > > > STR: > * Install Ambari 2.4.0.0-4686 on 3 hosts > * Install HDP 2.5.0.0-58 with Hive Server on 1 host and Hive Metastore on the other > * Select option to install Hive with "New MySQL" database > Failed installing Hive Metastore since MySQL service was not installed. > {code} > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of 'export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/conf.server ; /usr/hdp/current/hive-metastore/bin/schematool -initSchema -dbType mysql -userName hive -passWord [PROTECTED]' returned 1. WARNING: Use "yarn jar" to launch YARN applications. > Metastore connection URL: jdbc:mysql://c6405.ambari.apache.org/hive?createDatabaseIfNotExist=true > Metastore Connection Driver : com.mysql.jdbc.Driver > Metastore connection User: hive > org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. > *** schemaTool failed *** > {code} > I had to run this manually, > {code} > yum install mysql-server -y > service mysqld start > mysql -u root -p (password is empty string) > mysql> CREATE USER 'hive'@'%' IDENTIFIED BY 'admin'; > Query OK, 0 rows affected (0.00 sec) > mysql> GRANT ALL PRIVILEGES ON *.* TO 'hive'@'%'; > Query OK, 0 rows affected (0.00 sec) > mysql> GRANT ALL PRIVILEGES ON *.* TO 'hive'@'localhost'; > Query OK, 0 rows affected (0.00 sec) > mysql> GRANT ALL PRIVILEGES ON *.* TO 'hive'@'c6405.ambari.apache.org'; > Query OK, 0 rows affected (0.00 sec) > mysql> GRANT ALL PRIVILEGES ON *.* TO 'hive'@'c6405.ambari.apache.org' IDENTIFIED BY 'admin' WITH GRANT OPTION; > Query OK, 0 rows affected (0.00 sec) > mysql> flush privileges; > Query OK, 0 rows affected (0.00 sec) > {code} > and then try the Start again. -- This message was sent by Atlassian JIRA (v6.3.4#6332)