Skip to content

Manage Databricks Data Sources

ALTR must be connected to a Databricks Metastore to enforce tag-based masking and classification on it. ALTR connects to Databricks cloud-to-cloud, through a service principal and Unity Catalog APIs – there is no proxy or other component to install in your environment.

Before connecting, complete the account setup described in Preparing Your Databricks Account: the altr-service-group group, a service principal with an OAuth secret, the service principal’s membership in the Metastore admins group, read access for altr-service-group on the catalogs ALTR classifies and protects, workspace access for altr-service-group, and a SQL warehouse it can use. A workspace cluster is optional. That page also lists the requirements and limitations for the Databricks environment ALTR connects to.

To connect a Databricks Metastore, gather the workspace hostname, service principal ID, and OAuth secret, plus the cluster ID if ALTR will run on an existing all-purpose cluster in a classic workspace – see Locate Your Databricks Connection Details for where to find each value.

To connect a Databricks Metastore:

  1. Select Data Configuration > Data Sources in the navigation menu.
  2. Click Add Data Source.
  3. On the Databricks card, click Select.
  4. Enter a Display Name for the connection.
  5. Enter the Workspace Hostname.
  6. Enter the Service Principal ID.
  7. Leave Cluster ID blank to run ALTR’s masking jobs on serverless compute and automatic tagging on a SQL warehouse. To run both on an all-purpose cluster in a classic workspace instead, enter the cluster’s ID.
  8. Enter the OAuth Secret.
  9. Click Connect Data Source. ALTR validates connectivity and permissions before completing the connection.

Check a data source’s connection if you suspect an issue – for example, if you’re seeing errors or the data source has changed.

To check a Databricks connection:

  1. Select Data Configuration > Data Sources in the navigation menu.
  2. Select the data source you want to test.
  3. Open the Connection Details tab.
  4. Click Check Connection.

Change the Compute for a Databricks Data Source

Section titled “Change the Compute for a Databricks Data Source”

A Databricks data source’s Cluster ID decides where ALTR runs its masking jobs and automatic tagging, and you can change it after connecting: clear it to move the connection to serverless compute, or enter a cluster ID to move it to that cluster. Before you enter a cluster ID, set up the cluster as described in Configure a Workspace Cluster (Optional). Cluster ID is unavailable while a connection check is in progress.

To change the compute for a Databricks data source:

  1. Select Data Configuration > Data Sources in the navigation menu.
  2. Select the data source you want to change.
  3. Open the Connection Details tab.
  4. Clear Cluster ID to use serverless compute, or enter the ID of the cluster to use.
  5. Click Save. ALTR checks the connection and uses the new compute for its next masking jobs and automatic tagging.

Remove a Databricks data source if its service principal is having problems or another issue has occurred with the connection.

To remove a data source:

  1. Select Data Configuration > Data Sources in the navigation menu.
  2. Select the data source you want to disconnect.
  3. Click Remove Data Source. Removal can take up to several minutes to complete.