skip to main content
Using the Driver : Connecting from an Application : Connecting with the JDBC Driver Manager

Try DataDirect Drivers Now

Connecting with the JDBC Driver Manager

One way to connect to a Spark SQL database is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
* Registering the Driver with the Driver Manager
* Connection URL
* Testing the Connection