Send data from HighByte Intelligence Hub to Zerobus Ingest
For every connection and output setting, see the Databricks Zerobus user guide from HighByte. For the workspace URL and endpoint, see Get your workspace URL and Zerobus Ingest endpoint. For the service principal setup, see Configure authentication.
Maintained by: HighByte, in its user guide for the Databricks Zerobus connection. Databricks maintains the Zerobus Ingest steps.
Use this page to send HighByte Intelligence Hub output to a Unity Catalog table. The Databricks Zerobus connection streams the data directly into the table through Zerobus Ingest. The connection supports outputs only.
When to use this connection
- You run HighByte Intelligence Hub and want its output in a Unity Catalog table.
- You want to set up the output in the Hub's Databricks Zerobus connection, rather than write a Zerobus Ingest client yourself.
How it works
- Authentication: OAuth only. The Hub sets the authentication type automatically. You enter the client ID and client secret of a service principal or a user. Zerobus Ingest uses a service principal by default, so this page uses one. See Configure authentication.
- Table management: The Create Option setting controls whether the connection expects an existing table, creates it, or also updates it when the schema changes. See Step 3.
Requirements
- HighByte Intelligence Hub with the Databricks Zerobus connection. The official Intelligence Hub Docker image supports Zerobus only on version 4.5 and above.
- A glibc-based, x86_64 Linux environment. A custom image must use a glibc-based distribution, such as Debian or Ubuntu. Musl-based distributions, such as Alpine, aren't supported, and ARM64 (aarch64) isn't supported.
- A Databricks workspace in a region that supports Zerobus Ingest. See Availability.
- A SQL warehouse, for the HTTP path setting.
- A service principal with an OAuth secret, and the catalog, schema, and volume names for the output settings.
- For the Off Create Option, a target table that already exists and meets the Table requirements.
Prepare the Databricks side
The HighByte guide covers the connection settings only. The steps in this section come from the Zerobus Ingest documentation.
-
Create a service principal in your Databricks workspace, and generate and save its client ID and client secret. See Configure authentication.
-
On the service principal's Configurations tab, make sure the Workspace access entitlement is selected. Zerobus Ingest requires this entitlement. See Entitlements.
-
Copy the service principal's Application Id (a UUID). You enter it as the client ID in Step 2.
-
Grant the service principal access to the catalog and schema:
SQLGRANT USE CATALOG ON CATALOG <catalog> TO `<service-principal-uuid>`;GRANT USE SCHEMA ON SCHEMA <catalog>.<schema> TO `<service-principal-uuid>`;Replace
<service-principal-uuid>with the Application Id that you copied in this step. -
If the target table already exists, grant
MODIFYandSELECTon it. The table must exist for the Off Create Option in Step 3, and it can also exist with the other options:SQLGRANT MODIFY, SELECT ON TABLE <catalog>.<schema>.<table> TO `<service-principal-uuid>`;See MODIFY.
-
If you plan to set Create Option to Create or Create & Update in Step 3, the connection creates the table if it doesn't exist. Creating a table requires
CREATE TABLEon the schema, so grant it:SQLGRANT CREATE TABLE ON SCHEMA <catalog>.<schema> TO `<service-principal-uuid>`;See CREATE TABLE.
-
Give the service principal the CAN USE permission on the SQL warehouse whose HTTP path you enter in Step 2. The Unity Catalog grants don't include access to the warehouse. See SQL warehouse ACLs.
Set the connection settings
In the Databricks Zerobus connection, enter these settings:
Setting | Value |
|---|---|
Server Endpoint | The full server endpoint for your Databricks workspace. |
Workspace URL | The full Databricks workspace URL. |
JDBC Connection String | The JDBC connection string of the Databricks instance. |
HTTP Path | The HTTP path of the SQL warehouse, |
Authentication Type | OAuth. The Hub sets this value automatically. |
Client ID | The client ID of the service principal or user. For a service principal, use the Application Id from Step 1. |
Client Secret | The client secret of the service principal or user. |
The formats are the following:
- Server Endpoint:
https://<workspace-id>.zerobus.<region>.cloud.databricks.com - Workspace URL:
https://<deployment-id>.cloud.databricks.com - JDBC Connection String:
jdbc:databricks://<deployment-id>.cloud.databricks.com:<port>
Set the output settings
Enter the catalog, schema, and volume names, and choose a Create Option:
Setting | Value |
|---|---|
Catalog | The name of the catalog. |
Schema | The name of the schema. |
Volume | The name of the volume. |
Create Option | One of the options described in the following list. |
- Off: The table schema is defined and managed outside the connection. The table must already exist.
- Create: The connection manages the table. If the table doesn't exist, the connection creates it with the schema of the payload. The table isn't updated when the schema changes.
- Create & Update: The connection manages the table and updates it when the schema changes. For example, if an attribute is added to the data, the connection adds a column for it.
When the connection runs, it writes the output to the table in the catalog and schema that you entered in this step.
Troubleshooting
Symptom | Cause | Fix |
|---|---|---|
The connection doesn't run on an Alpine or other musl-based custom image. | The SDK's native C libraries need a glibc-based distribution. See Requirements. | Build the image on a glibc-based distribution, such as Debian or Ubuntu. |
The connection doesn't run on an ARM64 (aarch64) host. | Only x86_64 is supported. See Requirements. | Run the Hub on an x86_64 host. |
The connection isn't available in an official Intelligence Hub Docker image earlier than 4.5. | The official image supports Zerobus only on version 4.5 and above. See Requirements. | Use the Intelligence Hub Docker image, version 4.5 and above. |
You try to use the connection as an input. | Inputs aren't supported. | Use the connection as an output only. |
Additional resources
- Zerobus Ingest errors: the error codes that Zerobus Ingest returns.
- Zerobus Ingest quotas: throughput limits and delivery guarantees.
- Zerobus Ingest release stages: the release stage of each Zerobus Ingest interface.