You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/11/14 15:04:24 UTC

[GitHub] [spark] wanshicheng commented on pull request #5782: [SPARK-6913][SQL] Fixed "java.sql.SQLException: No suitable driver found"

wanshicheng commented on pull request #5782:
URL: https://github.com/apache/spark/pull/5782#issuecomment-968307485


   > 你好,我是一个新手,遇到这样的问题不知道何从下手,希望可以得到有效的帮助,我是在使用sparkSQL将处理过的数据保存至mysql中,打包上传运行时出现的“java.sql.SQLException: No suitable driver”,spark版本是2.3.2,希望可以得到一个有效的解决办法,谢谢
   
   在需要用到JDBC Driver的算子里,先注册一下Driver:
   DriverRegistry.register(className)
   它会根据全类名调用Spark的类加载器,加载Driver。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org