Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This page describes how to configure Azure Databricks compute resource settings for the Databricks ODBC Driver.
Required settings
Configure the following settings to connect to a Azure Databricks compute resource:
| Setting | Description |
|---|---|
Driver |
The driver's full installation path. See Download and install the Databricks ODBC Driver (Simba). |
Host |
The Server Hostname value from your Azure Databricks compute resource. |
Port |
443 |
HTTPPath |
The HTTP Path value from your Azure Databricks compute resource. |
SSL |
1 |
ThriftTransport |
2 |
Schema (optional) |
The name of the default schema. |
Catalog (optional) |
The name of the default catalog. |
DSN format
[Databricks]
Driver=<path-to-driver>
Host=<server-hostname>
Port=443
HTTPPath=<http-path>
SSL=1
ThriftTransport=2
<setting1>=<valueN>
<setting2>=<value2>
<settingN>=<valueN>
DSN-less connection string
The following example includes line breaks for readability. Remove them in your actual connection string.
Driver=<path-to-driver>;
Host=<server-hostname>;
Port=443;
HTTPPath=<http-path>;
SSL=1;
ThriftTransport=2;
<setting1>=<valueN>;
<setting2>=<value2>;
<settingN>=<valueN>
Replace <setting> and <value> with your authentication settings and any driver capability settings.
To get the values for <server-hostname> and <http-path>, see the following sections.
To get the connection details for an Azure Databricks cluster:
- Log in to your Azure Databricks workspace.
- In the sidebar, click Compute.
- In the list of available clusters, click the target cluster's name.
- On the Configuration tab, expand Advanced options.
- Click the JDBC/ODBC tab.
- Copy the connection details that you need, such as Server Hostname, Port, and HTTP Path.
To get the connection details for a Databricks SQL warehouse, do the following:
- Log in to your Azure Databricks workspace.
- In the sidebar, click SQL > SQL Warehouses.
- In the list of available warehouses, click the target warehouse's name.
- On the Connection Details tab, copy the connection details that you need, such as Server hostname, Port, and HTTP path.
To use the driver with an Azure Databricks cluster, there are two permissions that the calling user or service principal needs when connecting to or restarting the cluster:
- CAN ATTACH TO permission to connect to the running cluster.
- CAN RESTART permission to automatically trigger the cluster to start if its state is terminated when connecting.
To use the driver with a Databricks SQL warehouse, the calling user or service principal needs CAN USE permission. The Databricks SQL warehouse automatically starts if it was stopped.
Note
Databricks SQL warehouses are recommended when using Microsoft Power BI in DirectQuery mode.