我已经成功安装了 Hive 和 mysql,我按照 link 中的建议对 Hive 进行了配置.但我看到如下错误:
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
..
..
Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke the "BONECP" plugin to create a ConnectionPool gave an error : The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.
所以我在 Hive 的库中添加了 mysql-connector-java.jar。现在 hive 只是挂起,我根本没有得到 shell。
请建议我如何解决它
最佳答案
您需要将 mysql 连接器添加到配置单元中的类路径。它正在您的类路径中寻找该连接器,但无法找到它。下载mysql connector,放到以下路径
/usr/lib/hive/apache-hive-0.13.0-bin/lib
关于mysql - 配置单元 mysql 连接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29823646/