- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hive Meta store - mysql connection issue org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. *** schemaTool failed ***
- Labels:
-
Apache Hive
Created ‎10-08-2016 03:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. addedstderr.txt
Created ‎10-13-2016 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎10-08-2016 06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let's start with the following. Check user permissions in your MySQL.
login to MySQL shell and then see permissions in user table for user "hive".
SELECT User, host from MySQL.user where user = 'hive'
or try to find permissions for user hive and which hosts it can log in from.
SHOW GRANTS for 'hive'@'%';
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
GRANT ALL PRIVILEGES ON hive.* TO 'hive'@'%';
Created ‎10-13-2016 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
