Docs Home → MongoDB Kafka Connector
MongoDB Connection Configuration Properties
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of the MongoDB Kafka Connector.
Overview
Use the following configuration settings to specify how your sink connector connects and communicates with your MongoDB cluster.
For a list of sink connector configuration settings organized by category, see the guide on Sink Connector Configuration Properties.
Settings
Name | Description |
---|---|
connection.uri | Required Type: string Description: The MongoDB connection URI string
to connect to your MongoDB instance or cluster. For more information, see the Connect to MongoDB guide ImportantAvoid Exposing Your Authentication CredentialsTo avoid exposing your authentication credentials in your
Default: mongodb://localhost:27017 Accepted Values: A MongoDB connection URI string |
max.num.retries | Type: int Description: The number of retries to attempt when encountering write errors to MongoDB. Default: 1 Accepted Values: An integer |
retries.defer.timeout | Type: int Description: Amount of time (in milliseconds) to defer a retry attempt. Default: 5000 Accepted Values: An integer |