hive安装
2021-03-22 本文已影响0人
偏执的感叹号
问题集
# 启动hive提示com.mysql.jdbc.Driver was not found,缺少mysql驱动。
Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke the "HikariCP" 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.
- 解决方案:
将驱动jar包放到hive的lib目录下。
驱动下载见 mysql-connector-java-5.1.46.jar