Implementation:4paradigm OpenMLDB Kafka Pulsar Connector
| Knowledge Sources | |
|---|---|
| Domains | Streaming, Data_Ingestion |
| Last Updated | 2026-10-12 12:00 GMT |
Overview
External streaming data connectors for ingesting real-time data from Kafka and Pulsar into OpenMLDB online tables.
Description
OpenMLDB integrates with streaming data sources through Kafka and Pulsar connectors. These connectors subscribe to topics, parse incoming messages, and write data into OpenMLDB online tables in real-time. The Kafka connector is tested via the openmldb-ecosystem integration test module. The connector configuration maps Kafka/Pulsar topic schemas to OpenMLDB table schemas, enabling automatic data ingestion without manual insertion.
Usage
Use this implementation when building a real-time feature pipeline where streaming data sources (Kafka/Pulsar) feed into OpenMLDB for online feature computation. The connectors run as external processes alongside the OpenMLDB cluster.
Code Reference
Source Location
- Repository: OpenMLDB
- File: demo/init.sh (cluster deploy at L29-35), test/integration-test/openmldb-test-java/openmldb-ecosystem (Kafka integration tests)
External References
Import
# Kafka connector is part of the openmldb-ecosystem package
# It runs as an external service alongside the OpenMLDB cluster
# Deploy the cluster with ecosystem support
cd /work/openmldb && ./sbin/deploy-all.sh
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Kafka broker endpoint | string | Yes (Kafka) | Kafka broker address (e.g. localhost:9092)
|
| Pulsar endpoint | string | Yes (Pulsar) | Pulsar broker address |
| Topic | string | Yes | Source topic name |
| Table schema | mapping | Yes | Mapping from topic message schema to OpenMLDB table columns |
| OpenMLDB table | string | Yes | Target OpenMLDB table for ingested data |
Outputs
| Name | Type | Description |
|---|---|---|
| Streaming pipeline | service | Continuous data flow from Kafka/Pulsar topic to OpenMLDB online table |
Usage Examples
Kafka Connector Configuration (Conceptual)
# Start OpenMLDB cluster with ecosystem support
cd /work/openmldb && ./sbin/deploy-all.sh
# Kafka connector maps topic messages to OpenMLDB tables
# Configuration includes:
# - Kafka broker endpoint
# - Topic name
# - Schema mapping (Kafka message fields → OpenMLDB table columns)
# - Target OpenMLDB database and table
# The connector is managed by the openmldb-ecosystem module