Docs Menu
Docs Home
/ /

Propiedades de conexión de origen de MongoDB

Utiliza los siguientes parámetros de configuración para especificar cómo tu conector de origen de MongoDB Kafka establece una conexión y se comunica con tu clúster de MongoDB.

Para obtener una lista de las configuraciones del conector de origen organizadas por categoría, consulte la guía en Propiedades de configuración del conector de origen.

Nombre
Descripción

conexión.uri

Required

Type: string

Description:
The URI connection string to connect to your MongoDB instance or cluster.

To learn more, see Connect to MongoDB.

IMPORTANTE: Para evitar exponer sus credenciales de autenticación en su connection.uri configuración, utilice un ConfigProvider y establecer los parámetros de configuración adecuados.

Default: mongodb://localhost:27017,localhost:27018,localhost:27019
Accepted Values: A MongoDB URI connection string
database
Type: string

Description:
Name of the database to watch for changes. If not set, the connector watches all databases for changes.

Default: ""
Accepted Values: A single database name
collection
Type: string

Description:
Name of the collection in the database to watch for changes. If not set, the connector watches all collections for changes.

IMPORTANT: If your database configuration is set to "", the connector ignores the collection setting.

Default: ""
Accepted Values: A single collection name

servidor.api.versión

Type: string

Description:
The Stable API version you want to use with your MongoDB cluster. For more information on the Stable API and versions of MongoDB server that support it, see the Stable API guide.

Default: ""
Accepted Values: An empty string or a valid Stable API version.

Errores de desuso de server.api

Type: boolean

Description:
When set to true, if the connector calls a command on your MongoDB instance that's deprecated in the declared Stable API version, it raises an exception.

You can set the API version with the server.api.version configuration option. For more information on the Stable API, see the MongoDB manual entry on the Stable API.

Default: false
Accepted Values: true or false

servidor.api.strict

Type: boolean

Description:
When set to true, if the connector calls a command on your MongoDB instance that's not covered in the declared Stable API version, it raises an exception.

You can set the API version with the server.api.version configuration option. For more information on the Stable API, see the MongoDB manual entry on the Stable API.

Default: false
Accepted Values: true or false

Volver

Propiedades de configuración

En esta página