> For the complete documentation index, see [llms.txt](https://docs.streambased.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streambased.io/deploy-and-operate/integrate-with-iceberg-engines/integrate-with-databricks.md).

# Integrate with Databricks

## Connect Databricks to Streambased ISK

This guide walks you through connecting **Databricks** to your **Streambased ISK (Iceberg REST Catalog)** using Apache Iceberg's Spark catalog integration.

Once configured, Databricks can access Iceberg tables exposed by your Streambased deployment, allowing you to discover and query your data using Apache Spark SQL.

### Prerequisites

Before you begin, make sure you have:

* An active Streambased deployment with ISK enabled.
* The Iceberg REST Catalog endpoint for your Streambased deployment.
* The S3-compatible storage endpoint for your Streambased deployment.
* A Streambased API key and secret key.
* Access to a Databricks workspace with permission to create or modify classic compute clusters.
* A Databricks Runtime compatible with your Apache Iceberg libraries and Spark configuration.

> **Important:** This guide uses a classic compute cluster configured with **No Isolation Shared** access mode. This configuration may not be available in all Databricks workspaces and is not recommended for environments where untrusted users share compute resources.

### Step 1: Enable compute without Unity Catalog

To connect directly to Streambased ISK, first configure your Databricks workspace to allow classic compute without Unity Catalog enforcement.

1. Sign in to your Databricks workspace.
2. Click your profile icon in the top-right corner.
3. Select **Settings**.
4. Navigate to **Compute → Classic Compute**.
5. Locate the **Enforce User Isolation** setting.
6. Set **Enforce User Isolation** to **Off**.

Disabling this setting makes the **No Isolation Shared** access mode available when configuring classic compute clusters, subject to your workspace policies.

<figure><img src="https://3473204423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC7OgUqUHqZgOXvYL5kPN%2Fuploads%2FLpcwTqgXebtnEhyKuxwQ%2FScreenshot%20from%202026-10-08%2013-15-18.png?alt=media&amp;token=bd92f7aa-98ac-4f05-a4ee-84dac3c7c27f" alt=""><figcaption></figcaption></figure>

> **Security consideration:** Disabling user isolation is a workspace-level security change. Confirm that this configuration is appropriate for your environment and approved by your Databricks administrator before proceeding.

### Step 2: Configure a classic compute cluster

Next, create or edit the Databricks compute cluster that will connect to Streambased ISK.

1. Navigate to **Compute** in your Databricks workspace.
2. Create a new classic compute cluster or select an existing compatible cluster.
3. Locate the **Access mode** setting.
4. Select **No Isolation Shared**.
5. Ensure that your cluster policy allows this access mode.

When configured correctly, the Unity Catalog indicator should no longer appear alongside the compute configuration.

This indicates that the cluster is operating without Unity Catalog integration.

<figure><img src="https://3473204423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC7OgUqUHqZgOXvYL5kPN%2Fuploads%2FWo5WYL0NuWfwFscmOZXP%2FScreenshot%20from%202026-10-08%2013-17-31.png?alt=media&amp;token=3636e4ae-eb12-415d-939e-680210f9808f" alt=""><figcaption></figcaption></figure>

> **Note:** The Streambased catalog is configured at the Spark cluster level. It is therefore available to Spark workloads running on the configured compute, rather than being automatically registered as a Unity Catalog catalog.

### Step 3: Configure the Iceberg REST Catalog

With the cluster access mode configured, the next step is to register Streambased ISK as an Apache Iceberg REST Catalog.

1. Open your cluster configuration.
2. Expand **Advanced Options**.
3. Select the **Spark** tab.
4. Locate the **Spark config** text area.
5. Enter the Streambased Iceberg catalog configuration.

<figure><img src="https://3473204423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC7OgUqUHqZgOXvYL5kPN%2Fuploads%2F6QaBHxIX2IvejqPBT1XK%2FScreenshot%20from%202026-10-08%2013-18-22.png?alt=media&amp;token=470441b5-e4df-46ee-b00d-3ab9899d3720" alt=""><figcaption></figcaption></figure>

#### Spark configuration

Use the following configuration as a template, replacing the endpoint URLs and credentials with the values from your Streambased deployment.

```
# Register the Streambased Iceberg catalog
spark.sql.catalog.isk org.apache.iceberg.spark.SparkCatalog
spark.sql.catalog.isk.type rest
spark.sql.catalog.isk.uri <STREAMBASED_CATALOG_URI e.g. https://catalog.dev-us-west-2.streambased.cloud>

# Catalog warehouse
spark.sql.catalog.isk.warehouse s3://

# REST catalog authentication
spark.sql.catalog.isk.rest.sigv4-enabled true
spark.sql.catalog.isk.rest.signing-region us-west-2
spark.sql.catalog.isk.rest.access-key-id <STREAMBASED_API_KEY>
spark.sql.catalog.isk.rest.secret-access-key <STREAMBASED_SECRET_KEY>

# S3-compatible storage configuration
spark.sql.catalog.isk.io-impl org.apache.iceberg.aws.s3.S3FileIO
spark.sql.catalog.isk.s3.endpoint <STREAMBASED_STORAGE_URI e.g. https://isk.dev-us-west-2.streambased.cloud>
spark.sql.catalog.isk.s3.path-style-access true
spark.sql.catalog.isk.s3.access-key-id <STREAMBASED_API_KEY>
spark.sql.catalog.isk.s3.secret-access-key <STREAMBASED_SECRET_KEY>

# Metadata caching
spark.sql.catalog.isk.cache.expiration-interval-ms 10000

# Enable Iceberg Spark SQL extensions
spark.sql.extensions org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions

# Use ISK as the default Spark catalog
spark.sql.defaultCatalog isk
```

> **Important:** The endpoint URLs above are examples from a Streambased development deployment. Replace them with the endpoints provided for your environment. The configuration assumes that the necessary Apache Iceberg Spark and AWS libraries are available on your cluster.

#### Configuration reference

| Property                                             | Description                                                       |
| ---------------------------------------------------- | ----------------------------------------------------------------- |
| `spark.sql.catalog.isk`                              | Registers an Iceberg Spark catalog named `isk`                    |
| `spark.sql.catalog.isk.type`                         | Specifies `rest` as the catalog implementation                    |
| `spark.sql.catalog.isk.uri`                          | The Streambased Iceberg REST Catalog endpoint                     |
| `spark.sql.catalog.isk.warehouse`                    | The warehouse location used by the catalog                        |
| `spark.sql.catalog.isk.rest.sigv4-enabled`           | Enables AWS Signature Version 4 authentication for REST requests  |
| `spark.sql.catalog.isk.rest.signing-region`          | The signing region for REST catalog requests                      |
| `spark.sql.catalog.isk.rest.access-key-id`           | Your Streambased API key                                          |
| `spark.sql.catalog.isk.rest.secret-access-key`       | Your Streambased secret key                                       |
| `spark.sql.catalog.isk.io-impl`                      | Configures Iceberg's S3FileIO implementation                      |
| `spark.sql.catalog.isk.s3.endpoint`                  | The S3-compatible storage endpoint exposed by Streambased         |
| `spark.sql.catalog.isk.s3.path-style-access`         | Enables path-style S3 requests                                    |
| `spark.sql.catalog.isk.s3.access-key-id`             | Your Streambased API key for storage access                       |
| `spark.sql.catalog.isk.s3.secret-access-key`         | Your Streambased secret key for storage access                    |
| `spark.sql.catalog.isk.cache.expiration-interval-ms` | Sets the catalog metadata cache expiration interval to 10 seconds |
| `spark.sql.extensions`                               | Enables Apache Iceberg Spark SQL extensions                       |
| `spark.sql.defaultCatalog`                           | Sets `isk` as the default catalog                                 |

#### Understanding the configuration

**Catalog endpoint**

The following property tells Spark where to find your Streambased Iceberg REST Catalog:

```
spark.sql.catalog.isk.uri https://catalog.dev-us-west-2.streambased.cloud
```

This endpoint is responsible for catalog metadata operations, including discovering namespaces and tables.

**Authentication**

Streambased uses an API key and secret key to authenticate requests.

For example:

```
spark.sql.catalog.isk.rest.access-key-id sbpk_12345678
spark.sql.catalog.isk.rest.secret-access-key sbsk_12345678
```

Unlike the Snowflake integration, which uses a concatenated bearer token, this configuration passes the API key and secret key separately for SigV4 signing.

The same credentials are also configured for the S3-compatible storage connection.

**S3-compatible storage**

The following properties configure Iceberg to access the underlying table data through Streambased's S3-compatible endpoint:

```
spark.sql.catalog.isk.io-impl org.apache.iceberg.aws.s3.S3FileIO
spark.sql.catalog.isk.s3.endpoint https://isk.dev-us-west-2.streambased.cloud
spark.sql.catalog.isk.s3.path-style-access true
```

This enables Iceberg's S3FileIO implementation and configures it to use the Streambased storage endpoint rather than the default AWS S3 endpoint.

**Default catalog**

The following setting makes Streambased ISK the default Spark catalog:

```
spark.sql.defaultCatalog isk
```

This allows you to reference namespaces and tables without explicitly specifying the `isk` catalog in every query.

> **Security:** Avoid storing production API keys and secret keys directly in shared cluster configurations where possible. Use an approved secret-management approach compatible with your Databricks Runtime and Iceberg configuration. Restrict access to clusters containing credentials.

### Step 4: Configure Apache Iceberg dependencies

Your Databricks compute environment must have the Apache Iceberg libraries required by the configuration.

In particular, the setup references:

* `org.apache.iceberg.spark.SparkCatalog`
* `org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions`
* `org.apache.iceberg.aws.s3.S3FileIO`

Ensure that your compute environment provides compatible versions of the Apache Iceberg Spark runtime and AWS integration libraries.

If these classes are not already available, install the appropriate dependencies using your Databricks cluster library configuration.

The exact dependency versions depend on the Spark and Scala versions included in your Databricks Runtime.

> **Note:** The source setup does not specify a Databricks Runtime version or library installation procedure. Confirm compatible versions before configuring a production environment. Avoid installing incompatible Iceberg libraries alongside those already supplied by your runtime.

### Step 5: Start or restart the cluster

Once the Spark configuration and required libraries have been added:

1. Save your cluster configuration.
2. Start the cluster if it is stopped, or restart it if it is already running.
3. Wait for the cluster to become ready.

A restart is required for cluster-level Spark configuration changes to take effect.

If the cluster fails to start, review the cluster event logs and driver logs for configuration or dependency errors.

### Step 6: Verify the connection

Once your cluster is running, verify that Spark can communicate with Streambased ISK.

1. Create or open a Databricks notebook.
2. Attach the notebook to your configured classic compute cluster.
3. Run the following Spark SQL commands.

#### List available namespaces

```
SHOW NAMESPACES IN isk;
```

This queries the Streambased catalog and returns the namespaces available to your credentials.

#### List tables in a namespace

Once you have identified a namespace, list its tables:

```
SHOW TABLES IN isk.hotset;
```

#### Query an Iceberg table

To verify that Spark can read table data, run a query against an available table:

```
SELECT *
FROM isk.hotset.my_table
LIMIT 10;
```

Replace  `my_table` with the names of an existing namespace and table.

If the query succeeds, Databricks can access both the catalog metadata and the underlying Iceberg table data.

> **Tip:** Successfully listing namespaces confirms catalog connectivity, but does not necessarily confirm access to the underlying data. Run a `SELECT` query to verify that the S3-compatible storage configuration is working.

### Step 7: Use your Streambased catalog

Your Databricks cluster is now configured to use Streambased ISK as an Iceberg REST Catalog.

You can use standard Spark SQL commands to explore and query the Iceberg tables available through your Streambased deployment.

For example:

**Discover namespaces**

```
SHOW NAMESPACES IN isk;
```

**Discover tables**

```
SHOW TABLES IN isk.hotset;
```

**Query table data**

```
SELECT *
FROM isk.hotset.my_table
WHERE event_date >= '2026-01-01'
LIMIT 100;
```

The available operations depend on the permissions associated with your Streambased credentials and the capabilities exposed by your deployment.

Because `isk` is configured as the default catalog, you can also reference tables using their namespace and table name:

```
SELECT *
FROM hotset.my_table
LIMIT 10;
```

> **Note:** The catalog is configured on the compute cluster. Other clusters will need equivalent configuration before they can access Streambased ISK.

### Need help?

If you experience issues connecting Databricks to Streambased ISK, contact **Streambased Support**.

When raising a support request, include:

* Your Streambased deployment environment.
* Your Databricks Runtime version.
* The Iceberg REST Catalog endpoint.
* The S3-compatible storage endpoint.
* Any relevant Spark or Databricks error messages.

Do not include API keys, secret keys, or other sensitive credentials in support requests.
