<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Cannot install Hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189791#M61962</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are getting Access Denied while accessing mysql. So looks like you have node set the PRIVILEGES properly inside the mysql DB.&lt;/P&gt;&lt;P&gt;Please see:     &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt; # mysql -u root -p
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'localhost' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'localhost';
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'%' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'%';
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'&amp;lt;HIVEMETASTOREFQDN&amp;gt;' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'&amp;lt;HIVEMETASTOREFQDN&amp;gt;';
FLUSH PRIVILEGES;
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 15:34:43 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-05-29T15:34:43Z</dc:date>
    <item>
      <title>Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189789#M61960</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have reinstalled my cluster (HDP 2.6.0.3 (Ambari 2.5.0.3)) and cannot get hive to work. I removed it from one node and added it to another but it (hiverserver2) still won't start. I get this error:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/jdk64/jdk1.8.0_112/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/hdp/current/hive-server2/lib/mysql-connector-java.jar org.apache.ambari.server.DBConnectionVerification 'jdbc:mysql://s1.royble.co.uk/hive?createDatabaseIfNotExist=true' hive [PROTECTED] com.mysql.jdbc.Driver' returned 1. ERROR: Unable to connect to the DB. Please check DB connection properties.java.sql.SQLException: Access denied for user 'hive'@'s2.royble.co.uk' (using password: YES)&lt;/PRE&gt;&lt;P&gt;I saw &lt;A href="https://community.hortonworks.com/questions/61383/hive-issue-whle-restart-hive-metastore.html"&gt;this&lt;/A&gt; solution, but I do not have the required file on my computer, and I think I am missing lots of Hive stuff, for example there are no hive* folders below usr/hdp . Any idea how I can get Hive installed correctly?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:14:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189789#M61960</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-05-29T15:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189790#M61961</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;P&gt;This Error "Access denied for user 'hive'@'s2.royble.co.uk' (using password: YES)" itself states that you are entering wrong password for hive user crerated in Mysql.&lt;/P&gt;&lt;P&gt;To solve this Login to mysql&lt;/P&gt;&lt;P&gt;mysql&amp;gt; drop database hive;&lt;/P&gt;&lt;P&gt;And retry the installation of Hive service in ambari.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:33:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189790#M61961</guid>
      <dc:creator>nshelke</dc:creator>
      <dc:date>2017-05-29T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189791#M61962</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are getting Access Denied while accessing mysql. So looks like you have node set the PRIVILEGES properly inside the mysql DB.&lt;/P&gt;&lt;P&gt;Please see:     &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_hive_with_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt; # mysql -u root -p
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'localhost' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'localhost';
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'%' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'%';
CREATE USER '&amp;lt;HIVEUSER&amp;gt;'@'&amp;lt;HIVEMETASTOREFQDN&amp;gt;' IDENTIFIED BY '&amp;lt;HIVEPASSWORD&amp;gt;';
GRANT ALL PRIVILEGES ON *.* TO '&amp;lt;HIVEUSER&amp;gt;'@'&amp;lt;HIVEMETASTOREFQDN&amp;gt;';
FLUSH PRIVILEGES;
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:34:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189791#M61962</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-29T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189792#M61963</link>
      <description>&lt;P&gt;Thanks I am not using mysql but derby. I tried switching to mysql using &lt;A href="https://archanaschangale.wordpress.com/2013/09/05/changing-default-metastore-derby-of-hive-to-mysql/"&gt;this&lt;/A&gt;, but I cannot ' &lt;A href="http://dev.mysql.com/downloads/connector/j"&gt;Download&lt;/A&gt;&lt;I&gt;mysql-connector-java-5.0.5.jar&lt;/I&gt; file and copy it to $HIVE_HOME/lib directory.' since I do not have such a directory! &lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:20:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189792#M61963</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-06-02T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189793#M61964</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The link that you shared to migrate from Derby to MySQL seems to be too old (2013) and there are many changes and enhancements made in hive.&lt;/P&gt;&lt;P&gt;I do not see "Derby" database in the supported list of Databases in:   &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_support-matrices/content/ch_matrices-hdp.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_support-matrices/content/ch_matrices-hdp.html&lt;/A&gt;   So if this is your fresh cluster then you should install Hive with the supported databases to avoid the DB issues.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HDP 2.6 Hive Database Requirements&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;PostgreSQL 9.1.13+, 9.3, 9.4***
MariaDB 10*
MySQL 5.6****
Oracle 11gr2
Oracle 12c**
By default (on RHEL/CentOS/Oracle Linux 6), Ambari installs an instance of MySQL
                on the Hive Metastore host. Otherwise, you need to use an existing instance of
                PostgreSQL, MySQL or Oracle. 
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189793#M61964</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-02T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189794#M61965</link>
      <description>&lt;P&gt;Thanks. I was getting confused: it was mysql all along.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 14:49:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-install-Hive/m-p/189794#M61965</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-06-03T14:49:01Z</dc:date>
    </item>
  </channel>
</rss>

