For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect to Databricks

Configure direct and depot connections, external state storage, local development, and production deployment.

With the required grants in place, this is the connect stage. Configure the gateway that lets Vulcan reach Databricks, then validate it before writing models.

Connect through a Databricks SQL warehouse. Vulcan requires an external Postgres state store.

Authentication methods

  • Personal access token (PAT): set access_token. Generate one under User Settings → Developer → Access tokens → Generate new token.

  • Service principal token: set access_token to the service principal token.

The PAT's workspace must match server_hostname. A cross-workspace PAT fails silently at auth. Never commit the token; inject it with access_token: {{ env_var('DATABRICKS_ACCESS_TOKEN') }}.

Connection options

Local development and quick tests typically use a direct connection; production deployments should move to a DataOS Depot.

Set these options under gateways.<name>.connection in config.yaml.

Option
Description
Type
Required

type

Engine type name. Must be databricks.

string

Yes

server_hostname

The workspace hostname (for example, adb-xxxxx.azuredatabricks.net or dbc-xxxxxxxx-xxxx.cloud.databricks.com).

string

Yes

http_path

The HTTP path to the SQL warehouse or cluster. Find it under SQL Warehouses → your warehouse → Connection Details.

string

Yes

access_token

Personal access token (PAT) or service principal token.

string

Yes

catalog

The Unity Catalog name to use as the default catalog.

string

Yes

Example gateway configuration

Minimum local connection. Note the required state_connection and state_schema in config.yaml

Isolate multiple projects on the same Postgres instance with different state_schema values. For local development, run Postgres in Docker; in production, a DataOS-managed Postgres is used.

Local development

Databricks itself runs in the cloud; what you run locally is the Postgres statestore Vulcan needs.

If the CLI runs inside Docker and cannot reach Postgres, set STATESTORE_HOST=host.docker.internal and confirm the port mapping.

Production deployment

Production uses a depot instead of a direct connection. Apply resources in this order:

Manifest
Purpose

instance-secret-databricks-pat.yaml

Stores the Databricks PAT.

depot-databricks.yaml

Registers workspace URL, HTTP path, UC catalog; binds purposes to the secret.

secret-git-sync.yaml

Repo credentials for git-sync.

config.yaml

Gateway points at the depot.

domain-resource.yaml

Workflow plus API; engine: databricks, depot, repo.

Depot purposes:

Each purpose grants scoped access through the same depot. Assign only the purpose required by each workload.

Purpose
Who uses it
What it allows

rw

Vulcan workflow

Read source tables, create and write model output, manage schemas in the UC catalog.

scan

Metadata scanner

Read UC information_schema to populate the catalog and lineage.

query

Consumer direct access

Read-only access to Data Product tables.

Next step

After the gateway works, choose model behavior in Materialization behavior.

Last updated

Was this helpful?