Skip to main content Skip to complementary content

Create a Databricks connection

You need to know the Databricks server and database name to create a connection. You must also have access credentials. Once you have created a connection to your Databricks database, you can select data from the available tables and load that data into your app.

In Qlik Sense and Qlik Cloud Analytics Services, you connect to a Databricks database through the Data manager or the Data load editor.

In QlikView you connect to a Databricks database through the Edit Script dialog.

Setting up the database properties

Qlik Sense and Qlik Cloud Analytics Services database properties

Database properties that can be configured
Database property Description Required
Host name The IP address or host name of the Databricks server. Yes
Port Server port for the Databricks database. Yes
Catalog

If your Databricks host supports Unity Catalog, specify the catalog name. Otherwise, leave this field empty.

Information noteThe catalog name is case sensitive.
Only if your Databricks host supports Unity Catalog.
Database The name of the Databricks database. If you specified a catalog, you must specify a database in that catalog. Yes
HTTP Path Databricks compute resources URL. Yes

QlikView database properties

Database properties that can be configured
Database property Description Required
Spark Server Type The type of Databricks server can be Shark Server, Shark Server 2, or Spark Thrift Server. Yes
Host name The IP address or host name of the Databricks server. Yes
Port Server port for the Databricks database. Yes
Database The name of the Databricks database. Yes
Thrift Transport Can be set to Binary, SASL, or HTTP. Default = HTTP Yes

Authenticating the driver

Databricks connectors have the following authentication options:

  • User name

  • User name and password

  • No authentication

  • Azure OAuth

Qlik Sense and Qlik Cloud Analytics Services: Databricks authentication properties

These properties apply to authentication with:

  • User name

  • User name and password

  • No authentication

Authentication properties that can be configured
Property Description
Mechanism If the Databricks Server Type is Shark Server, you must select No Authentication. If the Databricks Server Type is Databricks Thrift Server, most configurations require User Name authentication. Selecting User Name or User Name And Password gives you the option to set up Account properties.
User Name User name for the Databricks connection.
Password Password for the Databricks connection.
Name

Name of the Databricks connection. The default name will be used if you do not enter a name.

Qlik Sense and Qlik Cloud Analytics Services: Azure OAuth authentication properties

You can authenticate using OAuth 2.0, if you are using Databricks on Azure. The support for OAuth also allows single sign-on (SSO) to Databricks with Qlik Sense SaaS when using an identity provider.

Authentication data can be stored in different places:

  • Username and password: The default setting. Authentication information is stored in Qlik Sense.

  • OAuth: User information will not be stored in Qlik Sense.

You need an authentication pin to authenticate via OAuth:

Do the following:

  1. Under Authentication, select Azure OAuth. New form fields appear.

  2. Fill in all fields. Click the Authenticate button in the Credentials section under Account properties. A new window opens.

  3. Copy the Authentication code. Go back to the connection creation dialog.

  4. Under Complete authentication with the PIN provided by the source, paste the authentication pin. Click Verify.

Information noteWhen using OAuth authentication, if you edit any of the connection properties after a connection has been authenticated, you must explicitly re-authenticate. This re-authentication will not be initiated automatically. If you do not re-authenticate in this situation, the connection will stop working.
Authentication properties that can be configured
Authentication property Description Required
Mechanism

Select Azure OAuth.

Yes
Tenant ID The Azure AD tenant to use for authentication. It is also referred to as the directory ID. Yes
Client ID The client ID when configuring the Azure AD OAuth authorization server. Yes
Client Secret The client secret when configuring the Azure AD OAuth authorization server. This needs to be inputted every time the connection needs to be re-authenticated. Yes

Databricks configuration for OAuth

Your Databricks database must be configured to use OAuth.

Do the following:

  1. Have a Databricks service hosted in Azure.

  2. Register OAuth app in Azure. For more information, see Configure an OpenID Connect OAuth application from Azure AD app gallery.

  3. Assign the following API to the OAuth app you created: https://azuredatabricks.net//user_impersonation.

QlikView: Databricks authentication properties

Authentication properties that can be configured
Property Description
Mechanism Authentication with user name only, with user name and password, or with no authentication. If the Databricks Server Type is Shark Server, you must select No Authentication. If the Databricks Server Type is DatabricksDatabricks Thrift Server, most configurations require User Name authentication.
User name Username for the Databricks connection.
Password Password for the Databricks connection.

Account properties

Credentials

Credentials are used to prove that a user is allowed to access the data in a connection.

There are two types of credentials that can be used when making a connection in Qlik Sense SaaS. If you leave the User defined credentials check box deselected, then only one set of credentials will be used for the connection. These credentials belong to the connection and will be used by anyone who can access it. For example, if the connection is in a shared space, every user in the space will be able to use these credentials. This one-to-one mapping is the default setting.

If you select User defined credentials, then every user who wants to access this connection will need to input their own credentials before selecting tables or loading data. These credentials belong to a user, not a connection. User defined credentials can be saved and used in multiple connections of the same connector type.

In the Data load editor, you can click the Primary key underneath the connection to edit your credentials. In the hub or Data manager, you can edit credentials by right-clicking on the connection and selecting Edit Credentials.

See which authentication type applies on each connector's page.

Account properties that can be configured
Account property Description
User defined credentials Select this check box if you want users that access this connection to have to input their own credentials. Deselect this check box if credentials can be shared with anyone who has access to this connection.
New credentials Drop-down menu item that appears if User defined credentials is selected.
Existing credentials Drop-down menu item that appears if User defined credentials is selected.
User User name for the connection.
Password Password for the connection.
Credentials name Name given to a set of user defined credentials.

Setting SSL options

SSL options that can be configured
Property Description Required
Enable SSL Require SSL authentication on the connection the Databricks server. No
Use System Trust Store Use the SSL certificate located in the standard system location used for storing trusted certificates. Yes, if certificate is stored in the standard system location. Only available when SSL is enabled.
Trusted Certificate The full path to the SSL certificate if it is not stored in the standard system location. Yes, if certificate is not stored in the standard system location. Only available when SSL is enabled.
Allow Self-signed Server Certificate Accept an SSL certificate from the server that is self-signed and not verified by a trusted authority. No. Only available when SSL is enabled.
Allow Common Name Host Name Mismatch Allow a mismatch between the SSL certificate's common name and the name provided in Host name field. No

Miscellaneous properties

Miscellaneous properties and options that can be configured
Property Description
Query timeout Amount of time before a data load query times out. Can be set from 30 seconds to 65535 seconds. Default is 30 seconds.

Load optimization settings

Load properties that can be configured
Property Description Required
Max String Length

Maximum length of string fields. This can be set from 256 to 16384 characters. The default value is 4096. Setting this value close to the maximum length may improve load times, as it limits the need to allocate unnecessary resources. If a string is longer than the set value, it will be truncated, and the exceeding characters will not be loaded.

No

Advanced options

Information noteThis section is for advanced users who want to add additional connection parameters that are not displayed above.
Advanced options that can be configured
Option Description Required

Name

Name of the property. You can add additional properties by clicking the plus sign.

No
Value

Value of the property.

No
Thrift Can be set to Binary, SASL, or HTTP. Default = SASL Yes
Information noteWhen you connect to a Databricks database in the Data load editor or the Edit Script dialog, you can click Test Connection before you create it.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!