Reading from and writing to a JDBC database using Spark SQL and DataFrames?

As of Spark 1.4, you should use `DataFrame.read.jdbc()` and `DataFrame.write.jdbc()` APIs as documented here:

https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameWriter

 

Have more questions? Submit a request

Comments