Skip to content

Locate Your Databricks Connection Details

Connecting a Databricks data source to ALTR requires four values from your Databricks workspace: the workspace hostname, the service principal ID, the cluster ID, and an OAuth secret. For the connect procedure itself, see Manage Databricks Data Sources.

The workspace hostname is the URL shown in your browser’s address bar while working in your Databricks workspace.

The Databricks workspace with its hostname visible in the browser address bar.

The service principal ID is the UUID Databricks assigns to the service principal you created for ALTR.

The Databricks service principal detail page showing its application ID.

The cluster ID is listed under the configuration tab for the compute cluster ALTR uses.

To locate the cluster ID:

  1. From your workspace, select Compute.
  2. Select the cluster configured for your service principal.
  3. Open the Configuration tab.
  4. Scroll to Tags and expand Automatically added tags. The cluster ID is listed there.

The Databricks cluster configuration tab with its cluster ID tag expanded.

The OAuth secret is generated from the Credentials & secrets tab of the service principal’s detail page. Databricks displays the secret value only once, when you generate it.

To generate an OAuth secret:

  1. From the service principal’s detail page, select the Credentials & secrets tab.

  2. Under OAuth secrets, click Generate secret.

  3. In Lifetime (days), enter how many days the secret stays valid, from 1 to 730.

  4. Under Scope, select Other APIs and confirm that all-apis is listed. If it isn’t, add it from Add scope. ALTR currently requires the all-apis scope.

  5. Click Generate.

    The Databricks Generate OAuth secret dialog with the Lifetime and Scope fields highlighted and the all APIs scope added.

  6. Record the Secret value. You cannot retrieve it again after you close the dialog.

    The Databricks dialog showing the generated OAuth secret, with the secret value and client ID blurred.