# Databricks

## How to connect Databricks to Churned.io

Login to Churned platform and go to integration part. Click on "New Integration" and add Databricks.

Churned seamlessly integrates with Databricks as a destination connection. This integration ensures real-time data synchronization.<br>

After selecting Databricks, you will need the following information:

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

* **Access Token**
* **HTTP Path**
* **Server Hostname**

#### To obtain this information, follow these steps:

1. **Log in to Databricks**: Go to the Databricks login page and enter your credentials to access your workspace.
2. **Navigate to SQL Warehouses**: Once logged in, select "SQL Warehouses" from the sidebar menu.
3. **Select your SQL Warehouse**: Click on the warehouse you want to connect with Churned.
4. **Retrieve Connection Details**: In the SQL Warehouse detail view, find the "Connection details" tab to view your HTTP Path and Server Hostname.

<figure><img src="/files/WJ5Pu32ml7ZPipBV2zgP" alt=""><figcaption><p>Location for HTTP path &#x26; Server hostname</p></figcaption></figure>

5. **Generate an Access Token**:

To create a Databricks access token for your Databricks workspace user, do the following:

* In your Databricks workspace, click your Databricks username in the top bar, and then select **Settings** from the drop down.
* Click **Developer**.
* Next to **Access tokens**, click **Manage**.
* Click **Generate new token**.
* Enter a comment that helps you to identify this token in the future.
* Set the token’s lifetime in days.

  If you leave the **Lifetime (days)** box empty, the token lifetime is set to the maximum lifetime for your workspace. By default, the maximum token lifetime for a workspace is 730 days. See [Set maximum lifetime of new personal access tokens](https://docs.databricks.com/aws/en/admin/access-control/tokens#lifetime).
* Click **Generate**.
* Copy the displayed token to a secure location, and then click **Done**.

**Enter the credentials in the Integration:** Go back to the integration setup screen in Churned and paste the copied Access token, the HTTP Path and the Server Hostname into correct fields. Click "Send" to complete the integration.


---

# Agent Instructions: 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:

```
GET https://docs.churned.io/churned-docs/integrations/databricks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
