Prepare to run the Databricks collector
Complete authentication and permission configuration tasks before running the Databricks metadata collector.
Before you begin
Role required: admin
Procedure
Generate credentials
Generate a personal access token or service principal secret to authenticate the Databricks connection.
Before you begin
Role required: account admin
About this task
Configure these credentials to enable authentication for the Databricks collector. You can use either a Personal Access Token (PAT) or an OAuth service principal.
Procedure
-
To generate a Personal Access Token (PAT):
- In the Databricks workspace, select your username in the top bar and select Settings.
- Select Developer.
- Next to Access tokens, select Manage.
- Select Generate New Token.
- Enter a comment to identify the token.
- Change the Lifetime (days) setting if required.
Note:To create a token with the maximum lifetime of 730 days, leave the lifetime field empty.
- Select Generate.
- Copy the displayed token and select Done. Save this token securely for future use.
- Alternatively, use the token API to generate a PAT.
-
To generate a Service Principal secret:
- In the Databricks workspace, select your username in the top bar and select Settings.
- Navigate to the Identity and access tab.
- Next to Service principals, select Manage.
- Select Add service principal.
- Select Add new, provide a name for the service principal, and select Add.
- Select the newly created service principal and navigate to the Secrets tab.
- Select Generate secret.
- Enter the lifetime for the secret and select Generate.
- Copy the Client ID and Client secret from the dialog box.
Configure permissions
Grant necessary permissions for Unity Catalog, Jobs, and system tables.
Before you begin
Role required: admin
About this task
In Unity Catalog, data is secure by default. Grant permissions to the user running the collector to harvest resources. Securable objects in Unity Catalog are hierarchical, and privileges are inherited downward.