> For the complete documentation index, see [llms.txt](https://docs.whaly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whaly.io/warehouse/databricks/connect-your-databricks.md).

# Connect your Databricks

In order to connect your Databricks instance, Whaly needs some credentials. This guide will details the necessary steps:

1. Getting your SQL Warehouse JDBC URL
2. Creation of a Personal Token

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

To connect Databricks to Whaly, you need the following:

* A Databricks Workspace with SQL support (premium and enterprise plans)
* A SQL Warehouse
* Admin rights on the Databricks Workspace

## Getting your SQL Warehouse JDBC URL

In order to connect to your Databricks Workspace, Whaly will need a SQL Warehouse and its JDBC URL:

* Go your Workspace home page
* In the left panel, select "SQL" to enter the SQL space of your Workspace

<figure><img src="/files/x8Dz1IS7AwzuX2vMzBP2" alt=""><figcaption></figcaption></figure>

* Once in the SQL space, click on "SQL Warehouses" in the left panel

<figure><img src="/files/umb7tE603yy0CNXZkNIM" alt=""><figcaption></figcaption></figure>

* In the SQL Warehouses screen, either create a dedicated Warehouse or select an existing one

<figure><img src="/files/jYIUAQA9QN4bf7mOHgkj" alt=""><figcaption></figcaption></figure>

* Once in a Warehouse, click on "Connection details" tab and copy the JDBC URL

<figure><img src="/files/4UvV5HossWTJQqYh21jw" alt=""><figcaption></figcaption></figure>

## Creation of a Personal Token

In order to authenticate on your Databricks Workspace, Whaly needs to have a "Personal Token". In order to create one, please [follow this guide.](https://docs.databricks.com/dev-tools/auth.html#pat)

You can either create a Personal Token on an existing user (simpler way) or create a Service principals and create the Personal Token on it (more secure way but requires doing manual API calls for setup).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.whaly.io/warehouse/databricks/connect-your-databricks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
