hive 异常之 MetaException

直接启动hive后

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

 

查看/tmp/root/hive.log 中日志信息

Caused by: MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)

hive-site.xml中配置了<name>hive.metastore.uris</name> 在sparkSQL中使用元数据信息

启动元数据服务后问题解决

bin/hive --service metastore &

bin/hive

 

posted @ 2019-07-10 03:13  lishisan  阅读(767)  评论(0编辑  收藏  举报
console.log('The World is Yours');
const aboutMe = {
name: 'LiShiSan',
title: 'Sr. Java/BigData Enthusiast',
location: 'China, BeiJing',
contact: {
email: '1641429327@qq.com',
website:'www.lishisan.top
}
}