Databricks Azure OAuth Authentication
Following steps will help you set up the OAuth authentication for Databricks connection to read and write.
Authentication Set Up
In Designer, place the Input tool to the canvas.
Select the Use Data Connection Manager (DCM) check box.
Select Set Up a Connection.
In the Data Connections window, go to Data sources and choose Databricks ODBC.
Select + Add Data Source.
When adding a Data Source, you can choose the connection with or without DSN.
Connection with DSN
Choose the DSN Technology, fill in the Data Source Name and choose the prepared OAuth DSN.
Select Save.
To link the credentials select + Connect Credential.
You can choose User name and password or OAuth as an Authentication Method.
You can choose AzureOAuth with Simba, AzureOAuth with Simba(Alteryx Application), No Credentials, Username, or Username and password as an Authentication Method.
For AzureOAuth with Simba you need
AzureOAuth Application Credentials. You can choose existing one or Create New Credential. For a new credential fill in the Credential Name, Tenant ID, Client ID, and Client Secret. All you can find on Microsoft Azure application registration page.
AzureOAuthTokens. You can choose existing token or Create New Credential for OAuth Tokens. For a new credential fill in the Credential Name.
AzureOAuth with Simba(Alteryx Application) you can Create New Credential or choose an existing one.
For a new credential fill in the Credential Name.
Select Create and Link.
Select the Connect button.
Sign in on the external browser window.
After successfull authentication you are able to choose the table or specify query with the Visual Query Builder and run the workflow.
Connection without DSN
Choose the DSN-less Technology from the drop down menu.
Fill in the information:
Data Source Name,
Server (address of your cluster),
Port,
HttpPath (listed in your cluster Configuration - Advanced options).
Select Save.
To link the credentials select + Connect Credential.
You can choose AzureOAuth with Simba and AzureOAuth with Simba(Alteryx Application) as an Authentication Method.
For AzureOAuth with Simba you need
AzureOAuth Application Credentials. You can choose existing one or Create New Credential. For a new credential fill in the Credential Name, Tenant ID, Client ID, and Client Secret. All you can find on Microsoft Azure application registration page.
AzureOAuthTokens. You can choose existing token or Create New Credential for OAuth Tokens. For a new credential fill in the Credential Name.
Select Create and Link.
Select the Connect button.
Sign in on the external browser window.
After successfull authentication you are able to choose the table or specify query with the Visual Query Builder and run the workflow.
Bulk loading using Oauth Authentication
Loading data from Desiger is supported by In-Database bulk loading.
Connection Configuration
In Designer, place the Data Stream In tool to the canvas.
Select Manage Connections in the Data Stream In Configuration - Connection Name drop down menu.
Select the Databricks datasource on the In-DB manager pop-up window.
You can select New to create a new connection or choose to use an existing one.
For the new connection, select the Use Data Connection Manager (DCM) check box.
Fill in the Connection Name.
To configure Read connection
Select Setup Connection.
Select + Add Data Source on the Connection Manager window.
When adding a Data Source, you can choose the connection with or without DSN.
Follow steps from Connection with DSN and Connection without DSN sections.
To configure Write connection
Choose staging method from the drop down menu.
Select Setup Connection.
Select + Add Data Source on the Connection Manager window.
Follow steps from Connection with DSN and Connection without DSN sections.
Note
Note that for a DSN bulk loading, you need to manually specify Databricks server address when adding a new datasource.
Select Apply and OK.
Sign in on the external browser window (you may be prompted to authenticate twice for both Read and Write connection).
Select Create New Table in the Data Stream In Configuration - Creation Mode drop down menu.
Fill in the Table Name and select the canvas.
You can run the workflow.