Stream Destinations
Stream destinations write to Kafka topics, Redis streams, or ActiveMQ queues and topics.
Providers: kafka | redis | activemq
Output fields
Every output in this type carries these fields; provider and format values live under options.
| Field | Type | Default | Notes |
|---|---|---|---|
name (required) | string | - | - |
from (required) | string | - | - |
mode (required) | append or update | - | Streaming output mode. Kept for backward compatibility if existing specs use output.mode. |
Minimal example
A complete stream destination with one output, written for provider kafka:
Code
Providers
kafka
An example for provider kafka:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
url (required) | string | - | Kafka bootstrap servers, for example kafka:9092 or host1:9092,host2:9092. |
auth is one of:
PLAINTEXT
| Field | Type | Default | Notes |
|---|---|---|---|
security_protocol (required) | PLAINTEXT | - | Kafka security protocol. |
SSL
| Field | Type | Default | Notes |
|---|---|---|---|
security_protocol (required) | SSL | - | Kafka security protocol. |
ssl_truststore_location | string | - | Path to Kafka SSL truststore. |
ssl_truststore_password | string | - | Password for Kafka SSL truststore. |
SASL_PLAINTEXT
| Field | Type | Default | Notes |
|---|---|---|---|
security_protocol (required) | SASL_PLAINTEXT | - | Kafka security protocol. |
sasl_mechanism (required) | PLAIN or SCRAM-SHA-256 or SCRAM-SHA-512 | - | Kafka SASL mechanism. |
user (required) | string | - | Kafka SASL username. |
password (required) | string | - | Kafka SASL password. |
SASL_SSL
| Field | Type | Default | Notes |
|---|---|---|---|
security_protocol (required) | SASL_SSL | - | Kafka security protocol. |
sasl_mechanism (required) | PLAIN or SCRAM-SHA-256 or SCRAM-SHA-512 | - | Kafka SASL mechanism. |
user (required) | string | - | Kafka SASL username. |
password (required) | string | - | Kafka SASL password. |
ssl_truststore_location | string | - | Path to Kafka SSL truststore. |
ssl_truststore_password | string | - | Password for Kafka SSL truststore. |
Settings options
settings.options:
| Field | Type | Default | Notes |
|---|---|---|---|
acks | 0 or 1 or all or -1 | - | Kafka producer acknowledgment mode. Maps to kafka.acks. |
compression_type | none or gzip or snappy or lz4 or zstd | - | Kafka producer compression type. Maps to kafka.compression.type. |
client_id | string | - | Kafka producer client ID. Maps to kafka.client.id. |
request_timeout_ms | integer | - | Kafka producer request timeout in milliseconds. Maps to kafka.request.timeout.ms. |
delivery_timeout_ms | integer | - | Kafka producer delivery timeout in milliseconds. Maps to kafka.delivery.timeout.ms. |
linger_ms | integer | - | Kafka producer linger time in milliseconds. Maps to kafka.linger.ms. |
batch_size | integer | - | Kafka producer batch size in bytes. Maps to kafka.batch.size. |
Output options
outputs[].options:
| Field | Type | Default | Notes |
|---|---|---|---|
value_format | auto or json or message or value | auto | Controls how the outgoing Kafka value is produced. auto uses value if present, then message, otherwise serializes the whole row as JSON. |
key_column | string | - | Optional column name to use as Kafka message key. |
include_headers | boolean | - | Whether Kafka headers are included when supported by the sink path. Maps to includeHeaders. |
redis
An example for provider redis:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
url (required) | string | - | Redis host |
auth | object | - | - |
auth.password | string | - | Redis password. |
Settings options
settings.options:
| Field | Type | Default | Notes |
|---|---|---|---|
db_num | integer | - | Optional Redis database number. Minimum: 0. |
max_pipeline_size | integer | - | Optional connector pipeline batch size. Minimum: 1. |
Output options
outputs[].options:
| Field | Type | Default | Notes |
|---|---|---|---|
value_format | auto or json or message or value | auto | Controls how the outgoing Redis value column is produced before writing through the Redis connector. |
activemq
An example for provider activemq:
Code
Connection
Use settings.connection_name for a saved connection, or configure it inline:
| Field | Type | Default | Notes |
|---|---|---|---|
url (required) | string | - | ActiveMQ broker URL. |
auth | object | - | - |
auth.user | string | - | - |
auth.password | string | - | - |
Output options
outputs[].options:
| Field | Type | Default | Notes |
|---|---|---|---|
value_format | auto or json or message or value | auto | Controls how rows are serialized before publishing to ActiveMQ. auto uses value/message column if available, otherwise serializes the full row as JSON. |
batch_size | integer | 100 | Number of messages to send per partition batch. Minimum: 1. |
persistent | boolean | true | Whether messages are sent using persistent delivery mode. |
time_to_live_ms | integer | 0 | Optional JMS message time-to-live in milliseconds. Use 0 for no expiration. Minimum: 0. |
Streaming query options
These apply to every output in a streaming pipeline:
| Field | Type | Default | Notes |
|---|---|---|---|
output_mode | append or complete or update | append | Output mode of the streaming query. append: only new rows; complete: full result table; update: only updated rows (since 2.0). Maps to outputMode. |
trigger_interval | string | - | Trigger interval for processing (e.g. '10 seconds', '1 minute'). When set, uses Trigger.ProcessingTime(interval). Maps to triggerInterval. |
checkpoint_location | string | - | Optional custom checkpoint directory. When not set, a default under /app/data/spark-checkpoints/ is used. Maps to checkpointLocation. |
query_name | string | - | Name for the streaming query (for monitoring and debugging). Maps to queryName. |