I’ve gotten it to work with SQL Server (with limitations; it’s buggy and doesn’t work with some types/operations).
https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/DataFrameWriter.html is the Java API you are looking for; the JDBC method lets you write to JDBC databases. I haven’t tried Oracle database, but I would expect it to work at least somewhat. From: Ruslan Dautkhanov [mailto:dautkha...@gmail.com] Sent: Monday, October 05, 2015 2:44 PM To: user <user@spark.apache.org> Subject: save DF to JDBC http://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases Spark JDBC can read data from JDBC, but can it save back to JDBC? Like to an Oracle database through its jdbc driver. Also looked at SQL Context documentation https://spark.apache.org/docs/1.4.0/api/java/org/apache/spark/sql/SQLContext.html and can't find anything relevant. Thanks! -- Ruslan Dautkhanov