Friday, January 19, 2018

Hive 2.1.1 MetaException(message:Version information not found in metastore.

​The necessary tables required for the metastore are missing in MySQL. Manually create the tables and restart hive metastore.
The schema files for MySQL will be available under the path $HIVE_HOME/scripts/metastore/upgrade/mysql/.
cd $HIVE_HOME/scripts/metastore/upgrade/mysql/

< Login into MySQL >

mysql> drop database IF EXISTS hive;
mysql> create database hive;
mysql> use hive;
mysql> source hive-schema-2.1.1.mysql.sql; 
Restart Hive metastore.​

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...