Skip to main content

pc.create_connection_gcs

pc.create_connection_databricks(name, access_token, server_host_name, http_path [, schema_name])

Create connection for Databricks

Parameters:

   name: str
Name of connection.

   access_token: str
Access token for Databricks.

   server_host_name: str
The server host name for your Databricks cluster.

   http_path: str
The path to your dataset.

   schema_name: str
Schema name (optional)

Returns:

   Connection

Examples:

Connect to a GCS Storage Bucket.

    connection = pc.create_connection_gcs('Databricks Connection',
'<my-token>', '<instance-name>.cloud.databricks.com', '/<path-to-dataset>')