Databricks
The Data Connect integration with Databricks automatically syncs your Contentsquare data to a Databricks account on AWS or Azure that uses Unity Catalog.
Prerequisites
Section titled PrerequisitesBefore setting up the Databricks integration, ensure you have:
-
Access is required to a Databricks account hosted on either AWS or Azure that uses Unity Catalog.
-
One of the following credentials:
- A Personal Access Token (PAT) ↗
- An OAuth client ID and client secret for a Databricks service principal (OAuth machine-to-machine ↗)
-
The user or service principal must have the following privileges:
CREATE TABLEon the target schemaMODIFYon tablesSELECTon tables
-
If your Databricks workspace uses serverless compute with a network policy set to Restricted access to specific destinations, add the following S3 buckets as Allowed Storage Destinations:
s3://heap-background-materializers3://heap-databrickss3://heap-identity-api-exports3://heap-background-materializer-eu-west-1s3://heap-databricks-eu-west-1s3://heap-identity-api-export-eu-west-1
Configure Data Connect
Section titled Configure Data Connect-
Log in to Contentsquare.
-
Navigate to Analysis setup > Data Connect.
-
Select Connect next to Databricks.
-
Provide the following information:
- Hostname: The ID of your Databricks account, which you can find in the account URL.
- Path: The path of the warehouse you are connecting via this integration.
- Catalog: The catalog that this data should sync to; if left blank, this integration will create a new catalog.
- Schema (optional): The schema that this data should sync to; if left blank, this integration will create a new schema.
- Authentication Method: Select how Data Connect authenticates with Databricks:
- Personal Access Token (PAT):
- Token: This is required to allow Data Connect to write to the schema. The token must be a Personal Access Token (PAT) rather than an OAuth token.
- OAuth (Client ID and Secret):
- Client ID: The client ID of your Databricks service principal.
- Client Secret: The client secret of your Databricks service principal. This is required to allow Data Connect to write to the schema. The credentials must belong to a Databricks service principal (OAuth M2M), not to a Personal Access Token.
- Personal Access Token (PAT):
-
Select Next.
Once setup is complete, you'll see a sync within 24 hours with the following built-in tables:
- Pageviews
- Sessions
- Users
user_migrations
Limitations
Section titled Limitations- Segment syncing is not supported.