hive> show tables;
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
这是因为没有导入相应的MySQL-connect。jar包,为了安全起见,我两个都导入了,成功解决问题。
hive> show tables;
OK
Time taken: 8.219 seconds