对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

MongoDB 源连接属性

使用以下配置设置指定 MongoDB Kafka Source 连接器如何建立连接并与 MongoDB 集群进行通信。

有关按类别排列的 Source 连接器配置设置列表,请参阅 Source 连接器配置属性指南。

名称
说明

connection.uri

必需

Type: string

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

To learn more, see Connect to MongoDB.

重要提示:为避免在 connection.uri 设置中暴露身份验证凭证,请使用ConfigProvider并设立适当的配置参数。

默认:mongodb://localhost:27017,localhost:27018,localhost:27019
接受值:MongoDB URI 连接字符串

database

类型:string

说明:
要监视更改的数据库名称。如果未设置,连接器会监控所有数据库的更改。

默认:""
已接受值:单个数据库名称

集合

类型: string

说明:
数据库中集合的名称,用于监视变更。如果未设置,连接器会监控所有集合的更改。

重要: 如果您的 database 配置设置为 "",连接器将忽略 collection 设置。

默认:""
已接受值:单个集合名称

server.api.version

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.

server.api.deprecationErrors

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

server.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

给本页内容打分

在此页面上