我已经成功地安装了Hive和mysql,我按照链接中的建议为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-连接器-java.jar。现在蜂箱挂了,我一点也不懂壳。
请建议我如何解决这个问题。
发布于 2015-04-23 18:11:11
您需要将mysql连接器添加到单元中的类路径中。它正在寻找您的类路径中的连接器,但它无法找到它。下载mysql连接器并将其放置到以下路径
/usr/lib/hive/apache-hive-0.13.0-bin/lib https://stackoverflow.com/questions/29823646
复制相似问题