FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeExcepti

FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

进入以下目录

cd $HIVE_HOME/scripts/metastore/upgrade/mysql/
ll

显示:

-rw-r--r-- 1 user user 12322 8月  13  2019 hive-schema-0.4.0.mysql.sql
-rw-r--r-- 1 user user 12322 8月  13  2019 hive-schema-0.4.1.mysql.sql
-rw-r--r-- 1 user user 13565 8月  13  2019 hive-schema-0.5.0.mysql.sql
-rw-r--r-- 1 user user 13798 8月  13  2019 hive-schema-0.6.0.mysql.sql
-rw-r--r-- 1 user user 24716 8月  13  2019 hive-schema-0.7.0.mysql.sql
-rw-r--r-- 1 user user 25914 8月  13  2019 hive-schema-0.8.0.mysql.sql
-rw-r--r-- 1 user user 25914 8月  13  2019 hive-schema-0.9.0.mysql.sql
-rw-r--r-- 1 user user 35192 8月  13  2019 hive-schema-1.1.0.mysql.sql
-rw-r--r-- 1 user user 35192 8月  13  2019 hive-schema-1.2.0.mysql.sql
-rw-r--r-- 1 user user 34845 8月  13  2019 hive-schema-1.3.0.mysql.sql
-rw-r--r-- 1 user user 34845 8月  13  2019 hive-schema-2.0.0.mysql.sql
-rw-r--r-- 1 user user 35488 8月  13  2019 hive-schema-2.1.0.mysql.sql
-rw-r--r-- 1 user user 35543 8月  13  2019 hive-schema-2.2.0.mysql.sql
-rw-r--r-- 1 user user 35543 8月  13  2019 hive-schema-2.3.0.mysql.sql
< Login into MySQL > mysql -uuser -p

mysql> drop database IF EXISTS hive;
mysql> create database hive;
mysql> use hive;
mysql> source hive-schema-2.3.0.mysql.sql;

Restart Hive metastore.

nohup hive --service metastore  2>&1 &  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值