Databricks is a unified analytics platform that provides a collaborative environment for data scientists, data engineers, and analysts to work together on data projects.
You can create a service principal directly in your Databricks account or from a Databricks workspace. If you have identity federation enabled on your workspaces, Databricks recommends creating the service principal in the account and assigning it to workspaces. If you do not have identity federation enabled and you want to use the service principal at the workspace level, you must create your service principal from a workspace.
Step 2: Assign workspace-level permissions to the Databricks service principal
If the admin console for your workspace is not already opened, click your username in the top bar and click Settings.
Click on the Identity and access tab.
Next to Service principals, click Manage.
Click the name of your Databricks service principal to open its settings page.
On the Configurations tab, check the box next to each entitlement that you want your Databricks service principal to have for this workspace, and then click Update.
On the Permissions tab, grant access to any Databricks users, service principals, and groups that you want to manage and use this Databricks service principal.
Step 3: Create an OAuth secret for a service principal
Before you can use OAuth to authenticate to Databricks, you must first create an OAuth secret, which can be used to generate OAuth access tokens. A service principal can have up to five OAuth secrets. Account admins and workspace admins can create an OAuth secret for a service principal.
In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
Select the Databricks icon. A dialog box with name of the connection and connection methods appear.
(Optional) Edit the name of the connection. At a later stage you cannot edit the name.
Select Service Principal as the method to create the connection.
Fill in the parameters:
The API Address
The Client ID
The Client Secret
(Optional) Click Test Connection to test it.
Click Create connection. The new connection appears on the Connections page.