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.
Prerequisites
Section titled “Prerequisites”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.
Connect a Databricks Data Source
Section titled “Connect a Databricks Data Source”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:
- Select Data Configuration > Data Sources in the navigation menu.
- Click Add Data Source.
- On the Databricks card, click Select.
- Enter a Display Name for the connection.
- Enter the Workspace Hostname.
- Enter the Service Principal ID.
- 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.
- Enter the OAuth Secret.
- Click Connect Data Source. ALTR validates connectivity and permissions before completing the connection.
Check a Databricks Connection
Section titled “Check a Databricks 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:
- Select Data Configuration > Data Sources in the navigation menu.
- Select the data source you want to test.
- Open the Connection Details tab.
- 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:
- Select Data Configuration > Data Sources in the navigation menu.
- Select the data source you want to change.
- Open the Connection Details tab.
- Clear Cluster ID to use serverless compute, or enter the ID of the cluster to use.
- Click Save. ALTR checks the connection and uses the new compute for its next masking jobs and automatic tagging.
Remove a Databricks Data Source
Section titled “Remove a Databricks Data Source”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:
- Select Data Configuration > Data Sources in the navigation menu.
- Select the data source you want to disconnect.
- Click Remove Data Source. Removal can take up to several minutes to complete.