Connect to SQL Workbench/J
This article describes how to use SQL Workbench/J with Databricks.
Note
This article covers SQL Workbench/J, which is neither provided nor supported by Databricks. To contact the provider, see use the SQL Workbench/J support forum in Google Groups..
Requirements
A cluster or SQL warehouse in your Databricks workspace.
The connection details for your cluster or SQL warehouse, specifically the Server Hostname, Port, and HTTP Path values.
A Databricks personal access token.
Note
As a security best practice, when you authenticate with automated tools, systems, scripts, and apps, Databricks recommends that you use personal access tokens belonging to service principals instead of workspace users. To create tokens for service principals, see Manage tokens for a service principal.
Steps to connect to Workbench/J
To connect to Workbench/J, do the following:
Launch SQL Workbench/J.
Select File > Connect window.
In the Select Connection Profile dialog, click Manage Drivers.
In the Name field, type
Spark JDBC
.In the Library field, click the Select the JAR file(s) icon. Browse to the directory where you downloaded the Simba Spark JDBC driver JAR.
Verify that the Classname field is populated.
Click OK.
Click the Create a new connection profile
icon.
Type a name for the profile.
In the Driver field, select com.simba.spark.jdbc.Driver.
In the URL field, enter the URL you constructed in Step 1.
In the Username field, enter
token
.In the Password field, enter your personal access token from Step 1.
Click Test.
Click OK twice.