Prerequisites
You need:- Access to a Databricks workspace with Unity Catalog enabled
- A catalog and schema where Orka can write tables (or permission to create them)
- Permission to create access tokens
- Permission to create tables in your target schema
If you don’t have access to Databricks or Unity Catalog, contact your Databricks administrator.
Find your workspace URL
Your workspace URL is the web address you see when you log into Databricks.- Log into your Databricks workspace in a browser.
- Look at the URL bar at the top of your browser.
- Copy the URL up to and including
.comor.net.
Workspace URL format
The format varies by cloud provider: AWS Databricks:Create an access token
An access token lets Orka authenticate to your Databricks workspace. You can use either a personal access token (for testing) or a service principal token (for production).Create a personal access token
Use personal access tokens for development and testing.- In your Databricks workspace, click your username in the top-right corner.
- Select Settings from the dropdown menu.
- Click Developer in the left sidebar.
- Next to “Access tokens”, click Manage.
- Click Generate new token.
- Enter a description (for example, “Orka production connection”).
- Set the token lifetime in days (90 days or less recommended).
- Click Generate.
- Copy the token immediately (a long alphanumeric string).
- Click Done.
Token security
Databricks automatically revokes tokens that have not been used for 90 days. Treat tokens like passwords and store them securely.Use service principals for production
For production, use service principals instead of personal access tokens. Service principals ensure pipelines continue working when team members leave.- Ask your Databricks administrator to create a service principal.
- Ask them to generate an OAuth token or personal access token for the service principal.
- Use that token in Orka.
Service principal setup requires Databricks administrator privileges. See Databricks service principal documentation for setup instructions.
Find or create a catalog
A catalog is a top-level container in Unity Catalog that organizes your data. The catalog has to exist before you connect Orka.Find existing catalogs
Using Catalog Explorer (UI):- Log into Databricks.
- Click Catalog in the left sidebar.
- You see a list of available catalogs.
- Note the catalog name you want to use.
Create a catalog
Using SQL:- Click Catalog in the left sidebar.
- Click Create catalog.
- Enter a catalog name (for example,
orka_data). - Optionally add a description.
- Click Create.
You need metastore admin privileges or
CREATE CATALOG permission to create catalogs. Contact your Databricks administrator if you cannot create catalogs.Typical catalog names
Organizations often create dedicated catalogs for different purposes:prod_analytics- production analytics dataorka_data- dedicated for Orka pipelineslakehouse- general lakehouse dataraw_data- raw operational data
Find or create a schema
A schema is a container within a catalog that holds tables. The schema has to exist before you connect Orka.Find existing schemas
Using Catalog Explorer (UI):- Click Catalog in the left sidebar.
- Expand your catalog name.
- You see schemas listed underneath (for example,
default,raw,staging). - Note the schema name you want to use.
Create a schema
Using SQL:- Click Catalog in the left sidebar.
- Click on your catalog name.
- Click Create schema.
- Enter a schema name (for example,
orka_tables). - Optionally add a description.
- Click Create.
Common schema names
default- automatically created with every catalograw- raw data from sourcesstaging- intermediate dataorka_tables- dedicated for Orka
Orka creates one table in this schema for each source table you publish. For example, if you publish a
customers table, Orka creates my_catalog.orka_tables.customers in Databricks.Grant permissions
The user or service principal you use needs specific permissions on the catalog and schema.Required permissions
Who can grant permissions
These users can grant permissions:- Databricks metastore admin
- Catalog owner
- Schema owner
- Users with
GRANTprivilege on the catalog or schema
Contact your Databricks administrator if you cannot grant permissions yourself.
Permission inheritance
Unity Catalog uses permission inheritance:- Permissions granted on a catalog apply to all schemas and tables in it
- Permissions granted on a schema apply to all tables in it
Verify your setup
Pre-connection checklist
- You have your workspace URL (copied from browser address bar)
- You have an access token (a long alphanumeric string)
- Your catalog exists (verified in Catalog Explorer)
- Your schema exists (verified in Catalog Explorer)
- You have the required permissions
Test your permissions
Run these commands in a Databricks notebook:Verify permissions
Connect from Orka
- Go to Destinations in Orka.
- Choose Databricks as the destination type.
- Enter the values you gathered:
- workspace URL
- access token
- catalog name
- schema name
- Click Test connection.
- Click Continue to save.
Troubleshoot
Cannot find workspace URL
Cannot find workspace URL
The workspace URL is in your browser’s address bar when you log into Databricks. Copy only the base URL (up to
.com or .net), not the full path.If you have multiple workspaces, use the URL for the workspace where your catalog and schema exist.Token generation button is disabled
Token generation button is disabled
Cannot see any catalogs
Cannot see any catalogs
Unity Catalog is not enabled in your workspace or you do not have access to any catalogs.
- Verify Unity Catalog is enabled (ask your Databricks administrator).
- Ask your administrator to grant you
USE CATALOGpermission on at least one catalog. - Or ask them to create a catalog for Orka.
Cannot create catalog or schema
Cannot create catalog or schema
You do not have
CREATE CATALOG or CREATE SCHEMA permissions.Contact your Databricks administrator. They can:- Grant you the necessary permissions.
- Create the catalog and schema for you.
- Provide access to an existing catalog and schema.
Test connection fails with permission error
Test connection fails with permission error
| Error | Cause | Solution |
|---|---|---|
| Catalog not found | Catalog does not exist or you lack USE CATALOG | Verify catalog exists: SHOW CATALOGS |
| Schema not found | Schema does not exist or you lack USE SCHEMA | Verify schema exists: SHOW SCHEMAS IN catalog |
| Cannot create table | Missing CREATE TABLE permission | Run: SHOW GRANTS ON SCHEMA catalog.schema |
| Cannot modify table | Missing MODIFY permission | Ask admin to grant MODIFY on schema |
Token authentication fails
Token authentication fails
Token is expired (90 days of inactivity), incorrect, incomplete, revoked or wrong format.
- Generate a new token following the steps in Create an access token.
- Copy the entire token (a long alphanumeric string).
- Verify the token works by testing it with Databricks CLI or API.