---
title: Settings for Simba JDBC Driver (Legacy) 2.6.22 and below
description: Learn how to configure authentication settings for Simba JDBC Driver (Legacy) versions 2.6.22 and below.
canonical_url: https://docs.databricks.com/aws/en/integrations/jdbc/legacy
---

# Settings for Simba JDBC Driver (Legacy) 2.6.22 and below

This page describes authentication settings for Simba JDBC Driver (Legacy) versions 2.6.22 and below. These versions use the `jdbc:spark://` URL scheme and the `com.simba.spark.jdbc.Driver` driver class.

* For Simba JDBC Driver (Legacy) versions 2.6.25 and above, which use the `jdbc:databricks://` URL scheme and the `com.databricks.client.jdbc.Driver` driver class, see [Authentication settings for the Simba JDBC Driver (Legacy)](https://docs.databricks.com/aws/en/integrations/jdbc/authentication.md) and [Compute settings for the Simba JDBC Driver (Legacy)](https://docs.databricks.com/aws/en/integrations/jdbc/compute.md).
* For the Databricks JDBC Driver, version 3 and above, see [Databricks JDBC Driver](https://docs.databricks.com/aws/en/integrations/jdbc-oss/index.md).

> [!WARNING]
>
> Use the most secure authentication flow available. The authentication methods on this page carry risks not present in other flows. Only use these methods when more secure options, such as managed identities, aren't viable.

## Requirements

Driver versions 2.6.22 and below require the `transportMode` and `SSL` properties. Set these to `http` and `1`, respectively. Current driver versions default `transportMode` to `http` and `SSL` to `1`, so you don't need to set them.

For `<server-hostname>` and `<http-path>` values, see the procedures at the end of this page.

## Personal access token authentication

### Connection URL

```
jdbc:spark://<server-hostname>:443;httpPath=<http-path>;transportMode=http;SSL=1;UID=token;PWD=<personal-access-token>
```

Replace `<personal-access-token>` with your Databricks personal access token.

### Java

```java
// ...
String url = "jdbc:spark://<server-hostname>:443;httpPath=<http-path>;transportMode=http;SSL=1";
Properties p = new java.util.Properties();
p.put("UID", "token");
p.put("PWD", "<personal-access-token>");
// ...
DriverManager.getConnection(url, p);
// ...
```

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.
