Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.Advanced TutorialsBuild end-to-end workflows between two specific systems.API ReferenceCLI ReferenceRelease Notes
Version: 2.0.0

KafkaStreamSrcConn

class
class KafkaStreamSrcConn(
servers: KafkaServersSpec,
credentials: KafkaCredentialsSpec | None = None,
group_id: KafkaGroupSpec,
schema_registry: SchemaRegistrySpec | None = None,
conn_cfg: CfgSpec | None = None,
)

Bases: Conn

Categories: source

Kafka connection used by KafkaStreamSrc.

Registered on a collection; the runtime resolves it and hands it to the source at run time. servers and group_id accept a plain string or a Secret.

Examples

A connection with a Confluent schema registry for SR-aware serdes:

KafkaStreamSrcConn(
servers="broker:9092",
group_id="ingest",
schema_registry=ConfluentSchemaRegistry(
url="http://registry:8081",
),
)

Parameters

parameter

Bootstrap-server list as a single comma-separated string of host[:port] items (any non-empty value), or a Secret that resolves to one.

parameter
credentialsKafkaCredentialsSpec | None (UserPassword | None)

Optional UserPassword for SASL/SCRAM auth; omit for an unauthenticated cluster.

parameter

Consumer-group id used by the polling consumer (any non-empty value). Required.

parameter

Optional ConfluentSchemaRegistry or AwsGlueSchemaRegistry; omit for schema-less ingest.

parameter
conn_cfgCfgSpec | None (dict | None)

Optional connector config forwarded as consumer configs to confluent_kafka.Consumer (see CfgSpec).