Hive启动后,执行show databases会报错
hive (default)> show databases;
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
原因是没有将mysql-connector-java-5.1.27-bin.jar 放到hive的lib下
[hadoop@hadoop002 bin]$ cp /home/hadoop/software/mysql-connector-java-5.1.47.jar ../lib/
再次重新启动,问题解决
hive首次启动后,MySQL中没有元数据[Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHive...]
最新推荐文章于 2023-02-14 10:16:11 发布