---
title: Compute settings for the Simba JDBC Driver (Legacy)
description: Learn how to configure Databricks compute resource settings for the Simba JDBC Driver (Legacy).
canonical_url: https://docs.databricks.com/aws/en/integrations/jdbc/compute
---

# Compute settings for the Simba JDBC Driver (Legacy)

> [!NOTE]
>
> This page applies to the Simba JDBC Driver (Legacy), versions below version 3. Databricks strongly recommends migrating to the [Databricks JDBC Driver](https://docs.databricks.com/aws/en/integrations/jdbc-oss/index.md) for JDBC connectivity. It includes improvements such as support for Unity Catalog metric views, transactions that span multiple SQL statements, stored procedures, faster large-result retrieval, and built-in client telemetry.

This page describes how to configure Databricks compute resource settings for the [Databricks JDBC Driver](https://docs.databricks.com/aws/en/integrations/jdbc/index.md).

> [!NOTE]
>
> The JDBC driver doesn't support connecting to job clusters.

## Required settings

Configure the following settings to connect to a Databricks compute resource:

| Setting              | Description                                                          |
| -------------------- | -------------------------------------------------------------------- |
| `Host`               | The **Server Hostname** value from your Databricks compute resource. |
| `Port`               | `443`                                                                |
| `HTTPPath`           | The **HTTP Path** value from your Databricks compute resource.       |
| `SSL`                | `1`                                                                  |
| `Schema` (optional)  | The name of the default schema.                                      |
| `Catalog` (optional) | The name of the default catalog.                                     |

## Connection URL format

Use the following format for the JDBC connection URL:

```
jdbc:databricks://<server-hostname>:443;httpPath=<http-path>[;<setting1>=<value1>;<setting2>=<value2>;<settingN>=<valueN>]
```

## Java example

The following example shows how to establish a connection using Java:

```java
// ...
String url = "jdbc:databricks://<server-hostname>:443";
Properties p = new java.util.Properties();
p.put("httpPath", "<http-path>");
p.put("<setting1>", "<value1>");
p.put("<setting2>", "<value2>");
p.put("<settingN>", "<valueN>");
// ...
Connection conn = DriverManager.getConnection(url, p);
// ...
```

For a complete example, see [Authentication settings for the Simba JDBC Driver (Legacy)](https://docs.databricks.com/aws/en/integrations/jdbc/authentication.md).

Replace the `<setting>` and `<value>` placeholders with your [authentication settings](https://docs.databricks.com/aws/en/integrations/jdbc/authentication.md) and any [driver capability settings](https://docs.databricks.com/aws/en/integrations/jdbc/capability.md).

To get the values for `<server-hostname>` and `<http-path>`, see the following sections.

To get the connection details for a Databricks [cluster](https://docs.databricks.com/aws/en/compute/configure.md):

1. Log in to your Databricks workspace.
2. In the sidebar, click **Compute**.
3. In the list of available clusters, click the target cluster's name.
4. On the **Configuration** tab, expand **Advanced options**.
5. Click the **JDBC/ODBC** tab.
6. 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](https://docs.databricks.com/aws/en/compute/sql-warehouse/index.md), do the following:

1. Log in to your Databricks workspace.
2. In the sidebar, under **SQL**, click **SQL Warehouses**.
3. In the list of available warehouses, click the target warehouse's name.
4. 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 a Databricks [cluster](https://docs.databricks.com/aws/en/compute/configure.md), there are two [permissions](https://docs.databricks.com/aws/en/compute/clusters-manage.md#cluster-level-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](https://docs.databricks.com/aws/en/compute/sql-warehouse/index.md), the calling user or service principal needs CAN USE [permission](https://docs.databricks.com/aws/en/security/auth/access-control/index.md#sql-warehouses). The Databricks SQL warehouse automatically starts if it was stopped.

> [!NOTE]
>
> Databricks SQL warehouses are recommended when using Microsoft Power BI in **DirectQuery** mode.
