Download and reference the Databricks JDBC Driver
This article describes how to download and reference the Databricks JDBC Driver.
Review the JDBC ODBC driver license before you download and reference the JDBC driver.
Some apps, clients, SDKs, APIs, and tools such as DataGrip, and DBeaver require you to manually download the JDBC driver before you can set up a connection to Azure Databricks. If you use Java build tools such as Maven or Gradle, these build tools can automatically download the JDBC driver. If you do not need to manually download the JDBC driver, skip ahead to Next steps.
To manually download the JDBC driver, do the following:
- Go to the All JDBC Driver Versions download page.
- Click the Download button for the latest version of the JDBC driver. The driver is packaged as a
.jar
file. This file does not require installation.
If you use Java code, you can reference the JDBC driver from your code in one of the following ways:
If you manually downloaded the
.jar
file, you can add the downloaded.jar
file to the Java classpath.For Maven projects, you can add the following dependency to the project's
pom.xml
file to instruct Maven to automatically download the JDBC driver with the specified version:<dependency> <groupId>com.databricks</groupId> <artifactId>databricks-jdbc</artifactId> <version>2.6.36</version> </dependency>
For Gradle projects, you can add the following dependency to the project's build file to instruct Gradle to automatically download the JDBC driver with the specified version:
implementation 'com.databricks:databricks-jdbc:2.6.36'
To view the dependency syntax for other project types, and to get the latest version number of the JDBC driver, see the Maven Central Repository.
Next steps
To configure an Azure Databricks connection for the Databricks JDBC Driver, see the following articles: