Overview
On this page, you can view all available configuration properties for your MongoDB Kafka source connector. This page duplicates the content of the other source connector configuration properties pages.
To view a list of all source connector configuration properties pages, see the Source Connector Configuration Properties page.
MongoDB Connection
Use the following configuration settings to specify how your MongoDB Kafka source connector establishes a connection and communicates with your MongoDB cluster.
To view only the options related to your MongoDB connection, see the MongoDB Source Connection Properties page.
Name | Description |
|---|---|
connection.uri | Required IMPORTANT: To avoid exposing your authentication credentials in your Default: |
database | Type: string |
collection | Type: string |
server.api.version | Type: string |
server.api.deprecationErrors | Type: boolean |
server.api.strict | Type: boolean |
Kafka Topic
Use the following configuration settings to specify which Kafka topics the MongoDB Kafka source connector should publish data to.
To view only the options related to your Kafka topic, see the Kafka Topic Properties for the Source Connector page.
Name | Description | ||||
|---|---|---|---|---|---|
topic.prefix | Type: string | ||||
topic.suffix | Type: string | ||||
topic.namespace.map | Type: string | ||||
topic.separator | Type: string
For example, the following configuration instructs the connector to publish
change stream documents from the IMPORTANT: When you use the | ||||
topic.mapper | Type: string |
Change Streams
Use the following configuration settings to specify aggregation pipelines for change streams and read preferences for change stream cursors when working with the MongoDB Kafka source connector.
To view only the options related to change streams, see the Change Stream Properties page.
Name | Description | |
|---|---|---|
pipeline | Type: string For more examples, see: Default: | |
change.stream.full.document | Type: string | |
change.stream.show.expanded.events | Type: boolean | |
change.stream.full.document.before.change | Type: string | |
publish.full.document.only | Type: boolean | |
publish.full.document.only.tombstone.on.delete | Type: boolean | |
change.stream.document.key.as.key | Type: boolean | |
collation | Type: string | |
batch.size | Type: int | |
poll.await.time.ms | Type: long | |
poll.max.batch.size | Type: int |
Output Format
Use the following configuration settings to specify the format of data the MongoDB Kafka source connector publishes to Kafka topics.
To view only the options related to the format of your output, see the Output Format Properties page.
Name | Description | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
output.format.key | Type: string | |||||||||||||||||||||||||||||||
output.format.value | Type: string | |||||||||||||||||||||||||||||||
output.json.formatter | Type: string Accepted Values: To learn more about these output formats, see JSON Formatters. | |||||||||||||||||||||||||||||||
output.schema.key | Type: string Accepted Values: A valid Avro schema | |||||||||||||||||||||||||||||||
output.schema.value | Type: string Accepted Values: A valid JSON schema | |||||||||||||||||||||||||||||||
output.schema.infer.value | Type: boolean |
Startup
Use the following configuration settings to configure startup of the MongoDB Kafka source connector to convert MongoDB collections into Change Stream events.
To view only the options related to startup, see the Startup Properties page.
Name | Description | |
|---|---|---|
startup.mode | Type: string If any system changes the data in the database while the source connector converts existing data from it, MongoDB may produce duplicate change stream events to reflect the latest changes. Since the change stream events on which the data copy relies are idempotent, the copied data is eventually consistent, conformant to an "at-least-once" delivery guarantee. Default: | |
startup.mode.timestamp.start.at.operation.time | Type: string
| |
startup.mode.copy.existing.namespace.regex | Type: string The | |
startup.mode.copy.existing.pipeline | Type: string Default: | |
startup.mode.copy.existing.max.threads | Type: int | |
startup.mode.copy.existing.queue.size | Type: int | |
startup.mode.copy.existing.allow.disk.use | Type: boolean |
Error Handling and Resuming from Interruption
Use the following configuration settings to specify how the MongoDB Kafka source connector behaves when it encounters errors and to specify settings related to resuming interrupted reads.
To view only the options related to handling errors, see the Error Handling and Resuming from Interruption Properties page.
Name | Description |
|---|---|
mongo.errors.tolerance | Type: string |
mongo.errors.log.enable | Type: boolean |
mongo.errors.deadletterqueue.topic.name | Type: string IMPORTANT: You must set |
offset.partition.name | Type: string |
heartbeat.interval.ms | Type: long |
heartbeat.topic.name | Type: string |