且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Spark - 将 JDBC 驱动程序 JAR 添加到 Google Dataproc

更新时间:2021-08-19 22:13:39

根据我的经验,将 driver 添加到属性通常可以解决问题:

From my experience adding driver to the properties usually solves the problem:

props.put("driver", "org.postgresql.Driver")
db.write.jdbc(url, table, props)