<?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 Hive Meta store - mysql connection issue org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. *** schemaTool failed *** in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120608#M43067</link>
    <description>&lt;P&gt;I am struggling with Hive meta store connection to mysql db. Everything is done by Ambari (latest version). everything is working fine except Hive Metastore crashes periodically and recovers. I can do show databases; show tables; create table but /usr/hdp/current/hive-client/bin/schematool -dbType mysql -initSchema doesnt work. Set up of mysql is complete. added&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8359-stderr.txt"&gt;stderr.txt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2016 22:26:11 GMT</pubDate>
    <dc:creator>orangegallery</dc:creator>
    <dc:date>2016-10-08T22:26:11Z</dc:date>
    <item>
      <title>Hive Meta store - mysql connection issue org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. *** schemaTool failed ***</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120608#M43067</link>
      <description>&lt;P&gt;I am struggling with Hive meta store connection to mysql db. Everything is done by Ambari (latest version). everything is working fine except Hive Metastore crashes periodically and recovers. I can do show databases; show tables; create table but /usr/hdp/current/hive-client/bin/schematool -dbType mysql -initSchema doesnt work. Set up of mysql is complete. added&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8359-stderr.txt"&gt;stderr.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 22:26:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120608#M43067</guid>
      <dc:creator>orangegallery</dc:creator>
      <dc:date>2016-10-08T22:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Meta store - mysql connection issue org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. *** schemaTool failed ***</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120609#M43068</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13599/orangegallery.html" nodeid="13599"&gt;@Cruz DSouza&lt;/A&gt;&lt;P&gt;Let's start with the following. Check user permissions in your MySQL.&lt;/P&gt;&lt;P&gt;login to MySQL shell and then see permissions in user table for user "hive".&lt;/P&gt;&lt;P&gt;SELECT User, host from MySQL.user where user = 'hive'&lt;/P&gt;&lt;P&gt;or try to find permissions for user hive and which hosts it can log in from.&lt;/P&gt;&lt;P&gt;SHOW GRANTS for 'hive'@'%';&lt;/P&gt;&lt;P&gt;If you don't see permissions for user hive, specially for the host you are logging in from, you can run the following. Notice, this statement below, gives hive permission to run from any client host. You might not need this and in that case, customize according to your requirements&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON hive.* TO 'hive'@'%';&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 01:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120609#M43068</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-10-09T01:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Meta store - mysql connection issue org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. *** schemaTool failed ***</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120610#M43069</link>
      <description>&lt;P&gt;Thanks for your answer. I could not figure out problem. All the mySql permissions were there. I simply had to reinstall and it worked like a charm. I guess it is goign to be a mystery, forever.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:48:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Meta-store-mysql-connection-issue-org-apache-hadoop/m-p/120610#M43069</guid>
      <dc:creator>orangegallery</dc:creator>
      <dc:date>2016-10-13T11:48:58Z</dc:date>
    </item>
  </channel>
</rss>

