Databricks: Add Database Connection
To define a new connection from the Connection parameter in a Databricks format:
- Select Add Database Connection. See database-specific parameters below, as well as the section Adding a Database Connection in a Workspace in Using Database Connections The new connection can be made visible only to the current user, or can be shared among multiple users.
Database Connection
Databricks
Name
Enter a name for the new connection.
Connection Parameters
Server Hostname
The server hostname of your Databricks cluster.
HTTP Path
The HTTP path of your Databricks cluster.
Authentication
The method used for authentication. Each method enables different parameter options.
Personal Access Token |
Connects using a personal access token from Databricks.
|
||
OAuth |
Uses an OAuth web connection to a service principal that accesses the Databricks service. This option enables the Databricks OAuth Connection parameter, from which you can pick a saved connection, or add a Databricks OAuth Web Connection.
|
- OAuth for AWS-hosted Databricks clusters – See Create an OAuth access token for Databricks APIs on the Databricks documentation website.
- OAuth for Microsoft Azure-hosted Databricks clusters – See OAuth 2.0 client credentials grant on the Microsoft documentation website.
Catalog
Specifies the default catalog to use once connected. The specified catalog should be an existing catalog.
Advanced – Specify JDBC Connection
When enabled, this parameter will allow the JDBC connection string and properties to be specified directly, in order to connect to the database.
Option |
Description |
---|---|
Connection String |
The connection string for the database to which you are connecting. |
Mask Connection Details |
Connection details may contain sensitive information, such as passwords. A masked connection string appears as: jdbc:<subprotocol>:************ While masked connection properties appear as: {<property_name1>=************, Warning Connection strings for connections whose parameters are embedded in the workspace are not masked, regardless of this setting.
|
Connection Property and Value |
JDBC connections can be configured with driver-specific arbitrary name/value pairs. The name/value pairs can often be specified in either the Connection String or a Properties object (sometimes only in one way or the other). Name/value pairs entered here will be set in the order specified, then passed on in a Properties object. They do not require manual encoding of characters that are not safe in Connection Strings. |