Ingesting Data from Databricks | Vendia

Ingesting Data from Databricks

Connecting to Databricks

To connect to Databricks clusters or SQL warehouses, you need to set up authentication using OAuth 2.0 with a service principal and provide the following information:

Prerequisites

Before connecting to Databricks, ensure that:

Authentication Setup

To set up OAuth authentication for Databricks:

  1. Create a service principal in your Databricks workspace
  2. Generate OAuth credentials (Client ID and Client Secret)
  3. Configure permissions for the service principal on the required catalogs and schemas
  4. Note the OAuth server endpoint for your workspace

Required Permissions

The OAuth application connecting to Databricks must have the following permissions:

Example Configuration

Here’s an example of a typical Databricks connection configuration:

Field Example Value
Name Production Databricks Lakehouse
Host your-workspace.cloud.databricks.com
HTTP Path /sql/1.0/warehouses/abc123def456
Catalog analytics_catalog
Schema sales_data
Client ID 12345678-1234-1234-1234-123456789012
Client Secret \\\\
OAuth Server https://your-workspace.cloud.databricks.com/oidc/v1/authorize

Vendia Supported and Unsupported Databricks Data Types

Vendia Supported Databricks Data Types Vendia Unsupported Databricks Data Types
BIGINT ARRAY
BOOLEAN BINARY
DATE DayTimeIntervalType
DECIMAL GEOGRAPHY
DOUBLE GEOMETRY
FLOAT INTERVAL
INT MAP
LONG NULL
SMALLINT OBJECT
STRING STRUCT
TIMESTAMP VARIANT
TIMESTAMP_NTZ VOID
TINYINT YearMonthIntervalType

Best Practices

Troubleshooting

If you encounter connection issues:

  1. Authentication Failed: Verify that Client ID, Client Secret, and OAuth server URL are correct
  2. Connection Refused: Check that the host and HTTP path are properly configured
  3. Cluster Not Found: Ensure that the cluster or SQL warehouse is running and the HTTP path is valid
  4. Catalog Not Found: Verify that the catalog name exists and Unity Catalog is enabled
  5. Schema Not Found: Confirm that the schema exists within the specified catalog
  6. Permission Denied: Check that the service principal has the required catalog and schema permissions
  7. Network Issues: Ensure that firewall rules allow HTTPS connections to Databricks
  8. OAuth Errors: Verify that OAuth configuration and token expiration settings are correct

Next Steps

After successfully connecting to your Databricks workspace, you can: