Spark SQL报错:The specified datastore driver (“com.mysql.jdbc.Driver”) was not found in the CLASSPATH.
启动Spark SQL报错:
- ./spark-sql
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.
at org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:232)
at org.datanucleus.store.rdbms.ConnectionFactoryImpl.in

在尝试启动Spark SQL时遇到了错误:'The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.' 解决这个问题的方法包括将MySQL的JDBC驱动复制到集群所有服务器的Spark jars目录,或者在spark-defaults.conf中添加相应的配置。
订阅专栏 解锁全文
4250

被折叠的 条评论
为什么被折叠?



