A wrapper for a JDBC Driver to work around SPARK-6913.
Options for the JDBC data source.
Data corresponding to one partition of a JDBCRDD.
java.sql.DriverManager is always loaded by bootstrap classloader, so it can't load JDBC drivers accessible by Spark ClassLoader.
java.sql.DriverManager is always loaded by bootstrap classloader, so it can't load JDBC drivers accessible by Spark ClassLoader.
To solve the problem, drivers from user-supplied jars are wrapped into thin wrapper.
This object is used to get an optimized JDBC RDD, which uses pooled connections.
Util functions for JDBC tables.
A wrapper for a JDBC Driver to work around SPARK-6913.
The problem is in
java.sql.DriverManager
class that can't access drivers loaded by Spark ClassLoader.