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;