RabbitMQ connector reference
This feature is in Beta. Workspace admins can control access to this feature from the Previews page. See Manage Databricks previews.
This page contains reference documentation for the managed RabbitMQ connector in Lakeflow Connect.
Connector options
The following options configure the RabbitMQ source for each destination table in the ingestion pipeline. Specify these options under connector_options.rabbitmq_options in your pipeline definition. See Examples for full pipeline examples.
Option | Type | Default | Description |
|---|---|---|---|
| String | — | (Required) Name of the RabbitMQ classic queue to consume from. |
Connection properties
When you create the Unity Catalog RabbitMQ connection in Catalog Explorer, you must specify the following properties. See Create a RabbitMQ connection for connection creation steps.
Property | Description |
|---|---|
Connection name | A unique name for the connection in Unity Catalog. |
Connection type | Select RabbitMQ. |
Host | The hostname of the RabbitMQ broker. |
Username | The username used to authenticate with the RabbitMQ broker. |
Password | The password used to authenticate with the RabbitMQ broker. |
Virtual host | The virtual host of the RabbitMQ broker. The default virtual host is |
Port | The port of the RabbitMQ broker. The default port is |
Destination table schema
The RabbitMQ connector writes to streaming tables (append-only). By default, each destination table contains a single column:
Column | Type | Description |
|---|---|---|
|
| The raw binary content of the RabbitMQ message body. The connector does not decode or deserialize the body during ingestion. Decode it downstream as needed. |
Include source metadata
To also capture RabbitMQ message metadata, set the source_metadata_column option in the destination table's table_configuration. When set, the connector adds a struct column with that name alongside body, containing the following fields:
Field | Type | Description |
|---|---|---|
|
| The exchange the message was published to. |
|
| The routing key the message was published with. |
|
| The queue the message was consumed from. |
|
|
|
|
| The producer-set message ID, if present. |
|
| The producer-set correlation ID, if present. |
|
| The producer-set content type, if present. |
|
| The producer-set content encoding, if present. |
|
| The producer-set message timestamp, if present. |
|
| The producer-set message headers, if present. |
The name you choose must not be body (the reserved output column), must not be empty, and must not contain a space or any of the characters ,;{}(), a newline, a tab, or =. When source_metadata_column is not set, the connector writes only the body column.
For a pipeline example, see Pipeline with source metadata.