Standalone模式
-
如何在Standalone模式下配置Spark以加载MySQL数据库驱动程序?
要在Spark的独立模式下加载MySQL数据库驱动程序,需要在提交Spark作业时添加jars参数指定驱动程序的路径。sparksubmit master local[*] jars /path/to/mysqlconnectorjavax.x.xx.jar yoursparkapp.jar。
要在Spark的独立模式下加载MySQL数据库驱动程序,需要在提交Spark作业时添加jars参数指定驱动程序的路径。sparksubmit master local[*] jars /path/to/mysqlconnectorjavax.x.xx.jar yoursparkapp.jar。