Skip to main content
版本:v2.0.0

Pravega connector

Audience: operators bridging EventMesh with Pravega. Move events between EventMesh and a Pravega stream. The source reads through a reader group (offsets managed natively by Pravega); the sink appends events to a stream, creating the scope/stream on first start.


Classes

DirectionClassBehavior
Sourceorg.apache.eventmesh.connector.pravega.source.PravegaSourceConnectorEventStreamReader reads up to the read-timeout each poll; a ReinitializationRequiredException (reader-group rebalance) closes the reader and recreates it on the next poll.
Sinkorg.apache.eventmesh.connector.pravega.sink.PravegaSinkConnectorEventStreamWriter.writeEvent(routingKey=id, bytes) for each CloudEvent; the batch is joined before returning (throw on failure → no ACK → redelivery).

Source configuration

KeyDefaultDescription
connector.scopescopePravega scope
connector.streamstreamStream to read
connector.controllerUritcp://localhost:9090Controller URI
connector.readTimeoutMs1000Per-poll read window in ms

Sink configuration

KeyDefaultDescription
connector.scopescopePravega scope (created on start)
connector.streamstreamTarget stream (created on start)
connector.controllerUritcp://localhost:9090Controller URI
connector.txnTimeoutMs30000Writer transaction timeout in ms

Running

bin/start-connector.sh with -Dconnector.class=...PravegaSourceConnector -Dconnector.mode=source -Dconnector.scope=my-scope -Dconnector.stream=my-stream