Generate a Databricks Personal Access Token¶
With Personal Access Token authentication, Qualytics signs in to Databricks with a token you generate in your workspace. Generate it as the user whose grants Qualytics should use (see Permissions).
Based on the Databricks documentation
These steps follow the official Databricks guide Authenticate with Databricks personal access tokens, available for AWS, Azure, and Google Cloud. Databricks can change its interface and documentation at any time without notice. If a screen or label looks different from what this page describes, follow the official guide.
Before you start¶
- Token creation must be allowed. A workspace admin can turn personal access tokens off, or limit who can create them. If you do not see Access tokens in the steps below, ask your workspace admin.
- Each token works in one workspace. Generate it in the workspace that holds the data Qualytics will read.
When a token stops working¶
- Unused tokens are revoked. Databricks revokes a personal access token that has not been used for 90 days. A datastore that Qualytics syncs, profiles or scans regularly keeps its token in use.
- Admins can revoke tokens. An account admin can revoke any token from the account console.
When the token is revoked or expires, the Qualytics connection fails with INVALID_CREDENTIALS until you paste a new token into it. See Troubleshooting.
Steps¶
Step 1: In your Databricks workspace, click your username in the top bar and select Settings.
Step 2: Click Developer.
Step 3: Next to Access tokens, click Manage.
Step 4: Click Generate new token.
Step 5: Enter a name that tells you later what the token is for, for example qualytics.
Step 6: Set the token's lifetime in days. When it expires, the Qualytics connection stops working until you paste a new token into it, so choose a lifetime that fits your rotation policy.
Step 7: If the dialog asks for a scope, choose one that allows Qualytics to run SQL queries. Databricks suggests BI Tools for tools that connect to SQL warehouses.
Step 8: Click Generate.
Step 9: Copy the token, then click Done.
Warning
Copy the token and save it in a secure location before you click Done. Databricks does not show it again; if you lose it, generate a new one.
Step 10: Paste the token into the Personal Access Token field when you add the source datastore.