最佳答案
The goal of this question is to document:
steps required to read and write data using JDBC connections in PySpark
possible issues with JDBC sources and know solutions
With small changes these methods should work with other supported languages including Scala and R.