FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
这是因为找不到hive数据库,我是连接的Windows下的mysql
因为:mysql的服务没有启动
在Windows命令窗口,使用管理员的方式打开
输入 net start msyql
启动服务
然后在hive在重新写SQL
hive> show tables;
FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
hive> show tables;
OK
Time taken: 15.222 seconds
hive> create table ti(id int,name string);
OK
Time taken: 0.676 seconds
hive> show tables;
OK
ti
Time taken: 0.059 seconds, Fetched: 1 row(s)