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

注意hive2.x版及以上需要启动hiveserver2和metatore,否则就会报以上的错

解决方法

进入hive安装目录下,进入bin目录,执行以下语句

[xf@hadoop bin]$ hive --service hiveserver2
[xf@hadoop bin]$ hive --service metastore

启动之后就会多runjar

进入hive执行语句show databases;

 

 

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注