sparkSql和hive的整合之mysql报错
Posted zhangxiaofan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sparkSql和hive的整合之mysql报错相关的知识,希望对你有一定的参考价值。
# hive
# show databases;
hive> show databases;
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
查看log日志:
hive.log 文件
mysql -u root -p
# input your password
解决方案
# SELECT ‘Upgrading MetaStore schema from 2.2.0 to 2.3.0‘ AS MESSAGE;
#UPDATE VERSION SET SCHEMA_VERSION=‘2.3.0‘, VERSION_COMMENT=‘Hive release version 2.3.0‘ where VER_ID=1;
#SELECT ‘Finished upgrading MetaStore schema from 2.2.0 to 2.3.0‘ AS MESSAGE;
以上是关于sparkSql和hive的整合之mysql报错的主要内容,如果未能解决你的问题,请参考以下文章
SparkSQL介绍与Hive整合Spark的th/beeline/jdbc/thriftserve2shell方式使用SQL
mac spark和hive整合(spark on hive)
sparksql读取hive数据报错:java.lang.RuntimeException: serious problem