手动搭建好Kylin环境后,构建Cube报错
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.
查看spark的jars目录,发现没有mysql相关驱动
![](https://i-blog.csdnimg.cn/blog_migrate/0985e6ea0ca0731321cda6a203c230aa.png)
解决方案:
将hive 的mysql驱动copy一份到spark的jars目录下中
cp XXX/mysql-connector-java-5.1.48.jar .
![](https://i-blog.csdnimg.cn/blog_migrate/ed02271f6963e5f151236709f786b165.png)
Cube第一步正常进行
![](https://i-blog.csdnimg.cn/blog_migrate/aebbeea7a363c63afddaada6e7ed7eb6.png)