Connecting Metabase to Databricks SQL warehouses: what the integration does
A data team that wants governed dashboards on Databricks data can connect a self-hosted Metabase to a Databricks SQL warehouse as a standard database connection. Metabase authenticates to Databricks either with a personal access token or with a service principal using OAuth machine-to-machine credentials, and in both cases it needs the Server Hostname and HTTP Path of the compute resource you want it to query. Those two values identify the host and the SQL warehouse or cluster endpoint, so the first decision is which compute resource Metabase should use and who owns it. Confirm that choice with the Databricks workspace administrator before anyone copies a token into the Metabase admin panel.
This is a database connection, so it does not depend on a paid Metabase plan. The Databricks connection is available in the open source edition, and what changes on a paid plan is the sign-in and governance layer around it. Metabase's SSO, row and column level permissions, and usage analytics and auditing are reserved for Pro and Enterprise, according to the pricing page. Keep the two questions separate: how Metabase reads data from Databricks is one decision, and how your people sign in to Metabase and what they can see once signed in is another. A personal access token tied to one employee, for example, does not tell Metabase who is asking a question, so plan the sign-in model on its own terms.
Because the connection runs under one Databricks identity, the permissions on that identity set the upper bound of what any Metabase user can reach through it. Before rollout, confirm with your Databricks administrator which catalogs, schemas and tables that identity can read, and confirm the warehouse's compute permissions and cost ownership. The rest of this page covers the authentication options, catalog and schema selection, and the Unity Catalog limits that affect what you can sync.
What you need before connecting Metabase to Databricks
Five things need to be settled before you open the Databricks connection form: the SQL warehouse, the credential type, the default catalog, the Metabase build and its application database, and the network path. Each card below is a decision or check that will block the connection if it is missed, so work through them in order.
SQL warehouse connection details
Metabase needs the Server Hostname and HTTP Path of the compute resource it will query. Copy both from the SQL warehouse connection details in your Databricks workspace, not from a general cluster page, so the connection targets the warehouse your analysts expect. Confirm that the warehouse is running or set to start on demand, and record which workspace and warehouse you chose so later troubleshooting starts from the right place.
Metabase Databricks docsCredential type chosen in advance
Decide between a personal access token and an OAuth service principal before you configure anything. A personal access token ties queries to one user's identity and expires with that user's account, while a service principal using OAuth machine-to-machine is an identity for the application. Ask your Databricks administrator which pattern your security team approves, and who will rotate the token or secret and when.
Default catalog and sync scope
A default catalog is required, so name the Unity Catalog catalog Metabase should open first. Also list any other catalogs you plan to sync with include or exclude lists. Metabase cannot sync legacy catalogs such as samples or hive_metastore, so plan your data access around the catalogs your governance team actually manages.
Metabase version and application database
Confirm the Metabase version you run and the application database behind it before you add a new data source. Production instances should use PostgreSQL rather than the embedded H2 database, and any connection changes should be tested on the same version you will run in production. Record the version in your change ticket so an upgrade later does not surprise the connection settings.
Network path from Metabase to the workspace
Confirm that the host running Metabase can reach the Databricks workspace and its SQL warehouse endpoint over the network path your organization allows. Check outbound firewall rules, proxies, DNS resolution and any private connectivity your cloud network uses, and involve your network team early because these rules differ by environment. Test from the Metabase host itself, not from your laptop, since that is the path production will use.
Principal permissions in your workspace
The identity Metabase uses needs permission to use the chosen SQL warehouse and to read the catalogs, schemas and tables it will sync. Confirm these grants in your own Databricks environment with the workspace administrator, and keep them as narrow as the reporting use case allows. Write the grant list down, because it is the first thing an access review will ask about.
Configuration sequence for the Databricks connection
This sequence takes a self-hosted Metabase from no Databricks connection to a working database entry with a chosen default catalog, controlled catalog sync and a confirmed test query. Each step ends with a check you can run before moving on.
Create the Databricks credential
A Databricks administrator or workspace owner creates the identity Metabase will use. You can authenticate with a personal access token tied to a service account user, or with an OAuth service principal using machine-to-machine OAuth. Grant that identity only the catalogs, schemas and tables that Metabase should read, and record where the secret will be stored. Done means the credential exists in the workspace, is scoped to the intended data, and the secret is held in your secrets manager rather than in a shared document. Confirm with your Databricks team which authentication method your workspace policies allow before you proceed.
Collect the Server Hostname and HTTP Path
In the Databricks workspace, open the SQL warehouse or compute resource that Metabase will query and copy its Server Hostname and HTTP Path from the connection details. Metabase needs both values, along with the credential from the previous step. Note which warehouse these values belong to, because a change of warehouse later means a change of HTTP Path. Done means you have both values written down in your change record and you have confirmed that the identity in the previous step can use that warehouse.
Add the Databricks database in admin settings
As a Metabase administrator, open the admin settings, go to Databases, and add a new Databricks database. Enter the Server Hostname, HTTP Path and the chosen authentication details, using the personal access token or the OAuth machine-to-machine fields that match the credential you created. Give the database a clear display name that identifies the environment and warehouse. Done means Metabase saves the connection without an error, and the database appears in the list with its authentication method shown as configured.
Choose the default catalog
Set the default catalog, which Metabase requires. Pick the Unity Catalog catalog that holds the data most people will query, and confirm that it is not a legacy catalog such as samples or hive_metastore, because Metabase cannot sync those. The default catalog determines which tables appear first and where unqualified queries resolve. Done means the default catalog is saved and matches the catalog your data owners expect to see.
Set include or exclude lists for multi-catalog sync
If you need more than one catalog, enable multi-catalog sync and set either an include list or an exclude list, not both at once in your plan. Use an include list when you want a short, explicit set of catalogs, and an exclude list when most catalogs are wanted and a few must stay hidden. Review each catalog name against the identity's grants so you do not expose data the credential cannot read. Done means the saved list matches a written decision, and you can explain each included catalog to the data owner.
Run the initial sync and confirm the schema
Trigger a sync from the database settings, or wait for the first scheduled sync, and then open the table browser. Check that the expected catalogs, schemas and tables appear and that no legacy catalogs or tables you excluded are present. Note any missing objects and compare them with the identity's privileges in Databricks. Done means the table list matches your include or exclude decision and any gaps have a recorded owner and cause.
Run a test query against a known table
Open a new question, select the Databricks database, and run a simple query against a table whose row count you can verify independently in Databricks SQL. Compare the result with the count from the warehouse. Repeat with one table in a non-default catalog if you enabled multi-catalog sync. Done means both results match, the query completes without a permissions error, and the test question is saved or documented so the check can be repeated after upgrades or credential rotation.
Personal access token or OAuth service principal: which to choose
A personal access token is tied to the Databricks user who created it. Every query Metabase sends under that token runs as that person, with that person's workspace permissions. A service principal is a non-human identity that you create in Databricks and grant only the catalogs, schemas and compute it needs. Metabase authenticates to it with OAuth machine-to-machine credentials. For a self-hosted Metabase that serves many teams, the service principal usually fits the intent better because the connection belongs to the analytics platform rather than to an individual.
- Owner of the identity: A personal token belongs to a person. A service principal belongs to the workspace or platform team that administers it.
- Permission scope: A personal token inherits everything that user can reach, which is often more than Metabase should see. A service principal only has the grants you assign to it.
- Compute access: Both methods need the warehouse's Server Hostname and HTTP Path. Confirm that the chosen identity has the
CAN USEpermission on that SQL warehouse. - Shared versus individual use: If several analysts depend on one connection, a personal token creates a single point of failure tied to one person.
- Test before you choose: Confirm in your Databricks account which permissions each identity gets, since workspace and Unity Catalog grants can differ.
Before you decide, check which catalogs each identity can read, because that set becomes the upper bound of what Metabase can sync.
Both methods carry credentials that must be rotated, but the work differs. A personal access token is a long-lived secret that a person generates in their own user settings, so its lifetime and renewal depend on Databricks workspace settings and on that person remembering to renew it. An OAuth service principal uses a client ID and secret that an administrator generates for the service principal and stores in your secret manager. Confirm the current token lifetime and secret expiry rules with Databricks, since these settings can change.
- Who rotates: A personal token is rotated by its owner. A service principal secret is rotated by the administrator who manages it.
- Where the secret lives: Store either credential in a secrets manager or the Metabase admin settings, never in shared documents or chat.
- Rotation runbook: Write down the steps to create a new credential, update Metabase, test the sync and revoke the old credential.
- Expiry alerts: Track expiry dates in your calendar or monitoring so a rotation does not cause a silent sync failure.
- Overlap window: Plan rotation so the old and new credentials overlap briefly, avoiding an outage during the change.
Whichever method you use, make the rotation owner and the review date explicit in your operating procedures.
Auditors and security teams need to answer who ran which queries and under what identity. With a personal token, Databricks activity is attributed to a human user, which can blur the line between interactive use and automated Metabase traffic. With a service principal, activity is attributed to a dedicated identity, so logs show that a query came from the Metabase connection. Either way, Metabase's own usage and permission records do not replace Databricks audit logs, so review both.
- Attribution in Databricks logs: A service principal makes Metabase traffic easy to separate from human activity in audit records.
- Access reviews: A service principal appears as a named account in your periodic review of who can read which catalogs.
- Separation of duties: Personal tokens mix one person's interactive grants with the connection's grants, which complicates reviews.
- Metabase-side controls: Pair the connection choice with Metabase group and data permissions so that Metabase users are not all reading through one broad identity.
- Evidence to retain: Keep the identity configuration, grant lists and rotation records together for review.
Ask your compliance team which evidence they expect for this connection before the build starts.
The departure of the person who created a personal access token is the most common reason a Metabase connection breaks without warning. Tokens are tied to that user, so when the account is disabled or the person changes role, the connection can fail, and any queries, sync schedules or saved questions depending on it stop working. A service principal is not tied to any employee, so a staffing change does not invalidate the connection. Its credentials still need an owner and a rotation schedule, and that ownership should be written into your offboarding process.
- Offboarding impact: A personal token stops working when the account is removed or deactivated, which affects every Metabase user who depends on it.
- Recovery effort: Replacing a personal token requires someone with access to the Databricks account to create a new token and update Metabase.
- Permission drift: When a person moves teams, their workspace grants change, which can silently change what Metabase can read.
- Ownership record: Name a team, not an individual, as owner of the service principal and its secret.
- Offboarding checklist: Add a step that lists every Metabase connection a departing user created or administers.
Before go-live, ask the Databricks administrator who would rotate the credential if the current owner were unavailable for a week.
Choosing catalogs and schemas to sync
Metabase needs a default catalog set on the Databricks connection, and that catalog is the one it starts from when it reads metadata. Beyond that, you decide how much of the workspace Metabase sees. With multi-catalog sync, you can list the catalogs to include or exclude, so Metabase syncs only the catalogs your reporting use case needs instead of everything the service principal or token can reach. Metabase cannot sync Databricks legacy catalogs such as samples or hive_metastore, so plan your reporting data in Unity Catalog catalogs from the start. Schemas are scoped in the same way, and it helps to decide which schemas hold curated reporting tables and which hold raw or scratch data that analysts should not query directly.
Before you set the include and exclude lists, ask the Databricks admin which catalogs and schemas the reporting team needs, which are owned by data engineering, and which contain personal or regulated data that should stay out of Metabase entirely. Confirm the default catalog exists, is readable by the identity you configured, and is the catalog you expect Metabase to open first. Also confirm whether any catalog is a legacy one that cannot be synced, so the list you write matches what Metabase can actually read. Keep in mind that sync scope is a convenience and a reduction of exposure, not the access control itself. Who can query which data in Metabase is governed by Metabase permissions and the grants in Unity Catalog, so check both with the admin before rollout.
How Metabase reaches a Databricks SQL warehouse
The flow starts at the Metabase server, which keeps its own application database for users, groups and saved questions. Metabase then connects outward to the Databricks SQL warehouse using either a personal access token or an OAuth service principal, and it needs the warehouse's Server Hostname and HTTP Path. Inside the workspace, the synced Unity Catalog catalogs define what Metabase can see, so check the default catalog and the include or exclude lists before rollout. The trust boundary sits between your network and the Databricks workspace.
Metabase, its credential and the warehouse, with the trust boundary between them.
Mapping Metabase databases, catalogs and permissions to Databricks
This table matches each Metabase concept to the Databricks object it depends on, and notes where the control lives. Read it before you decide how many Metabase database connections you need and which principal Metabase should use. The main takeaway is that Metabase group permissions govern what people see in Metabase, while Databricks grants govern what the connection can read.
| Metabase concept | Databricks object | Where the control is applied |
|---|---|---|
| Database connection | Workspace host plus SQL warehouse (Server Hostname and HTTP Path) | Metabase admin settings, one connection per warehouse you choose to expose |
| Authentication identity | Personal access token or OAuth service principal | Databricks identity settings; the principal's grants set the ceiling for every Metabase user |
| Default catalog | One catalog the connection starts from | Metabase connection setup; a default catalog is required |
| Synced catalogs and schemas | Catalogs chosen with include or exclude lists | Metabase sync settings; legacy catalogs such as samples or hive_metastore cannot be synced |
| Metabase groups and data permissions | Not a Databricks object; Metabase applies them on top of the principal's access | Metabase admin permissions, set per group, database and collection |
| Multi-catalog enabled | Several catalogs on one host are exposed through one connection | Routing works only between databases on separate hosts, so plan separate connections per host |
| Multi-catalog disabled | Catalogs on the same host can be switched by database routing | Database routing can send different Metabase groups to different catalogs on the same host |
How multi-catalog sync changes database routing
With multi-catalog disabled, Metabase treats the connection as one database, and database routing can switch between catalogs on the same Databricks host. That lets you send different groups to different catalogs through one connection. With multi-catalog enabled, the picture changes: routing only works between databases on separate hosts, so catalogs that share a host cannot be separated by routing. Before you turn the setting on or off, confirm which of your catalogs share a Server Hostname and HTTP Path, because that determines whether routing can give different groups different data.
Decide the catalog model before you build dashboards, collections and permission groups. Start by listing which catalogs and schemas each audience needs, which catalogs must be excluded (remember that legacy catalogs such as samples and hive_metastore cannot be synced), and whether those catalogs sit on one host or several. Dashboards and saved questions are tied to the database they were built on, so moving them later to a different routing layout means rework. Record the decision in writing and have the data owners approve it, so the permission groups you create match the routing you actually configured.
Test routing with a non-admin user before rollout. Admins see more than most users and can mask a routing or permission gap. Create a test account in each permission group, sign in as that user, and confirm that each expected catalog appears and that the others do not. Run a representative question against each catalog and check the results. Repeat the test after any change to the include or exclude lists, the multi-catalog setting or the group permissions, since any of these can alter what a user sees.
Securing the Databricks credential and grants
The Metabase connection is only as narrow as the identity behind it. These cards cover which Databricks principal to use, how to grant it the least access, how to store and rotate its secret, and how to watch what it runs. Confirm each Databricks-side control in your own workspace before go-live.
Use a service principal for shared analytics
Metabase authenticates to Databricks with either a personal access token or a service principal using OAuth machine-to-machine. A personal token ties every query to one employee, so it breaks when that person leaves or changes role. A service principal is a non-human identity you can grant only the catalogs and schemas Metabase needs. Check in your workspace that the principal exists, is scoped to the workspace, and has its own OAuth secret.
Metabase Databricks docsGrant read access to named catalogs only
Metabase requires a default catalog and can sync several catalogs through include or exclude lists. Grant the principal USE CATALOG, USE SCHEMA and SELECT only on the catalogs and schemas you intend to sync, and avoid broad grants at the metastore level. Remember that Metabase cannot sync legacy catalogs such as samples or hive_metastore, so those do not need grants for this connection. Confirm the exact privilege names against current Databricks documentation.
- Required setting
- Default catalog
Keep write privileges off the Metabase principal
Dashboards and questions only read data, so the principal should not hold MODIFY, CREATE or ownership on any table. Write access widens the damage a leaked credential can do and makes audit results harder to read. If a feature in your Metabase version asks for write rights, record the reason and the schema it applies to. Ask your Databricks administrator to confirm what the principal can change in each catalog.
Store and rotate the OAuth secret
Keep the service principal's OAuth secret in your secrets manager or the environment that runs Metabase, not in a dashboard export or a shared document. Set a rotation schedule and record its owner. When you rotate, create the new secret, update Metabase, confirm a sync and a query succeed, then revoke the old secret. Confirm secret lifetime and rotation options in your Databricks account settings.
Databricks connection settingsRestrict where the principal can connect from
The SQL warehouse endpoint should accept connections only from the networks where your Metabase servers run. Review IP access lists or private connectivity options for the workspace and the warehouse, and confirm that the Metabase host can reach the Server Hostname on the required port. Test from a host outside that network to confirm the connection is refused. Confirm which network controls your workspace tier supports.
Audit queries run by the Metabase principal
Because the principal is dedicated, its query history shows exactly what Metabase ran, which helps access reviews and incident response. Review query history and audit logs for the principal on a fixed schedule, and alert on access to catalogs outside the include list. Check that your audit log retention meets your own policy. Confirm which Databricks audit and query history features are enabled for your workspace.
Database routing docsCommon Databricks connection failures and fixes
This table lists the connection and sync problems teams most often hit when pointing a self-hosted Metabase at Databricks, with the likely cause and the fix for each. Read it when a connection test fails or when a expected catalog or schema is missing from Metabase.
| Symptom | Likely cause | Fix |
|---|---|---|
| Connection test fails before authentication | Server Hostname or HTTP Path copied from the wrong compute resource | Copy both values from the SQL warehouse connection details in Databricks and confirm the warehouse is running. |
| Connection fails with no default catalog | A default catalog is required and the field was left empty or set to a catalog the identity cannot use | Set a default catalog that the token or service principal can read, then retest the connection. |
| Samples or hive_metastore catalogs do not appear | Metabase cannot sync Databricks legacy catalogs such as samples or hive_metastore | Plan around this limit. Move the data you need into a Unity Catalog catalog, then add that catalog to the sync list. |
| Catalog or schema visible in Databricks but missing in Metabase | The identity lacks USE CATALOG, USE SCHEMA or SELECT grants, or the include or exclude list filters it out | Grant the identity the needed privileges on the catalog and schema, then check the include and exclude lists and run a sync. |
| Authentication suddenly fails after working | The personal access token expired or was revoked, or the user who created it left | Issue a replacement token from a service account, or move to an OAuth service principal so the connection does not depend on one person. |
| Queries return a different catalog than expected | With multi-catalog disabled, routing can switch between catalogs on the same host | Review which databases share a host. If you need strict separation, confirm the routing behavior against Metabase's database routing documentation before relying on it. |
| Routing fails between two catalogs | With multi-catalog enabled, routing only works between databases on separate hosts | Keep catalogs that must be routed apart on separate connections with different hosts, or test the routing path in a staging instance first. |
Questions buyers ask before connecting Metabase to Databricks
What drives the cost of connecting Metabase to Databricks?
The cost is mostly the time spent on Unity Catalog access, credential setup, catalog selection and testing, so the size of the Databricks estate matters more than the Metabase installation itself. Software cost is zero for the Open Source edition, but the work has to be paid for: either your own engineers' time or an implementation partner's fixed-scope fee. Costs go up with the number of catalogs and schemas to sync, the number of access groups that need different visibility, and whether you need a repeatable runbook for later connections. Ask any partner for a written scope that lists catalogs, access model, credential type, environments and test cases, since that scope is what a quote is built from. DeployOpen does not publish prices.
How long does a Databricks connection take to set up?
The duration depends on how many catalogs you sync and which access model you choose. A single catalog with one service principal is a smaller job than several catalogs with per-group permissions, because each catalog needs its own include or exclude decision, access check and test. Work also waits on people outside the Metabase team, including Unity Catalog admins and the owner of the SQL warehouse. Ask for a timeline tied to the agreed catalog list and to those approval dependencies, not a single number for the whole project.
What must our team provide before the connection work starts?
You need to provide four things: the warehouse's Server Hostname and HTTP Path, Unity Catalog admin access or an admin who can grant privileges, a decision on credential type, and the list of catalogs and schemas to sync. Metabase authenticates with either a personal access token or a service principal using OAuth machine-to-machine, so the credential decision should be made early. You also need a default catalog, since Metabase requires one. Confirm the warehouse can be reached from your Metabase network path before scheduling tests.
Can an internal team connect Metabase to Databricks on its own?
Yes, a team that already runs Databricks and Metabase can make the basic connection with its own engineers, as the setup is a configuration task rather than a build. The harder parts are the access model: granting only the right catalogs and schemas, avoiding the legacy catalogs Metabase cannot sync, and documenting who can change them later. Teams without recent Unity Catalog administration experience often choose a partner for that design and review. Whichever route you take, plan a test with a non-admin user before any business group gets access.
Which Unity Catalog limits should we know before rollout?
The main limit is that Metabase cannot sync Databricks legacy catalogs such as samples or hive_metastore, so data in those catalogs will not appear in Metabase. You also need a default catalog, and you can sync several catalogs with include or exclude lists. Check that every catalog people expect to see is a Unity Catalog catalog, and confirm the service principal or token has the privileges to read it. Confirm the current limits with the Metabase Databricks documentation before you commit to a catalog plan, since the connection behavior is the authority for your version.
Does multi-catalog routing change how we separate data between teams?
Yes, it changes what routing can do. With multi-catalog disabled, database routing can switch between catalogs on the same host, so you can send different groups to different catalogs. With multi-catalog enabled, routing only works between databases on separate hosts, so two catalogs on one Databricks warehouse cannot be routed apart this way. Decide the isolation model before you enable multi-catalog, because switching later affects which groups see which data. Test each group's access after the change.
When does a paid Metabase plan matter for a Databricks connection?
The Databricks connection itself works on the Open Source edition, but the access controls you will probably want around it are paid features. Metabase's pricing page places SSO, row and column level permissions, and usage analytics and auditing only in the Pro and Enterprise plans. If your Databricks data needs group-based row or column restrictions, or your identity provider login must be enforced with SAML or OIDC, plan for Pro or Enterprise. Enterprise is priced by quote starting at $20,000 per year, and Pro is listed at $575 per month or $517.50 per month billed yearly. Confirm current prices on the pricing page before budgeting.
How DeployOpen scopes and delivers the Databricks connection
DeployOpen delivers the Databricks connection as a fixed-scope engagement, with the written scope agreed before any work starts. That scope names the Databricks workspace and SQL warehouse, the authentication method (a personal access token or an OAuth service principal), the catalogs and schemas to sync, the Metabase edition and hosting environment, and the people who approve each step. Because Metabase needs a default catalog and cannot sync legacy catalogs such as samples or hive_metastore, the scope should also record which Unity Catalog objects are in play, so the quote reflects the real amount of configuration and review. Ask for the scope in writing and check that it lists the Server Hostname and HTTP Path values, the service principal or token owner, and the named catalogs.
Delivery covers the connection itself and the design decisions around it. DeployOpen configures the Databricks driver connection in your self-hosted Metabase, sets the include or exclude lists for catalogs, and reviews the permissions the chosen identity holds in Unity Catalog. If you plan to use database routing, the review also checks whether multi-catalog sync is enabled, because routing behaves differently on the same host than across separate hosts. Verification follows the build: test queries against each synced catalog, confirmation that restricted schemas do not appear, and a check that sync and scan schedules do not overload the warehouse. Each check is recorded so your team can repeat it later.
Handover is a set of documentation your engineers and data owners can use without a DeployOpen contact. It typically covers the connection settings and where secrets are stored, the catalog and schema map, the permission model, the verification steps and the rollback path. If you want ongoing help, a retainer can cover credential rotation, reviews after Unity Catalog changes and Metabase upgrades. DeployOpen does not hold a vendor partner status for Databricks or Metabase, and the scope should not imply one. Confirm the support hours, response expectations and renewal terms in the retainer agreement before signing.

