Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.05 KB

File metadata and controls

50 lines (34 loc) · 2.05 KB

import CreateServicePrincipal from '/snippets/dwh/databricks/create_service_principal.mdx'; import PermissionsAndSecurity from '/snippets/dwh/databricks/databricks_permissions_and_security.mdx'; import IpAllowlist from '/snippets/cloud/integrations/ip-allowlist.mdx';

This guide contains the necessary steps to connect a Databricks environment to your Elementary account.

Add an environment in Elementary (requires an admin user)

In the Elementary platform, go to Environments in the left menu, and click on the "Create Environment" button. Choose a name for your environment, and then choose Databricks as your data warehouse type.

Provide the following common fields in the form:

  • Server Host: The hostname of your Databricks account to connect to.
  • Http path: The path to the Databricks cluster or SQL warehouse.
  • Catalog (optional): The name of the Databricks Catalog.
  • Elementary schema: The name of your Elementary schema. Usually [your dbt target schema]_elementary.

Then, select your authentication method:

OAuth (M2M) — Recommended

Authenticate with M2M OAuth

  • Client ID: The Application (client) ID of the service principal (the "Application ID" you copied in step 5).
  • Client secret: The OAuth secret you generated for the service principal (see step 7).
OAuth machine-to-machine (M2M) authentication is the recommended method for connecting to Databricks. It uses short-lived tokens that are automatically refreshed, providing better security compared to long-lived personal access tokens.

Access token (legacy)

Authenticate with Access Token

  • Access token: A personal access token generated for the Elementary service principal.