hive启动报错:Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

报错信息:

java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
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)
org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient


报错分析:

我们看到SessionHiveMetaStoreClient可以很容易想到hive的元数据,再看到session就知道是hive的元数据服务没有启动

问题解决:

开启hive元数据服务(后台运行)

nohup hive --service metastore 2>&1 &

再使用hive就可以启动啦!

你可能感兴趣的:(报错问题,hadoop,apache,hive)