You can download all the Pulsar connectors on download page.
The MongoDB source connector pulls documents from MongoDB and persists the messages to Pulsar topics.
This guide explains how to configure and use the MongoDB source connector.
The configuration of the MongoDB source connector has the following properties.
|String||true||" " (empty string)||The MongoDB URI to which the connector connects. |
For more information, see connection string URI format.
|String||false||" " (empty string)||The name of the watched database. |
If this field is not set, the source connector will watch the entire MongoDB for all changes.
|String||false||" " (empty string)||The name of the watched collection. |
If this field is not set, the source connector will watch the database for all changes.
|String||false||"INCR_SYNC"||The synchronization type between MongoDB and Pulsar: full synchronization or incremental synchronization. |
Valid values are
|int||false||100||The batch size of pulling documents from collections.|
|long||false||1000||The batch operation interval in milliseconds.|
Before using the Mongo source connector, you need to create a configuration file through one of the following methods.