Docs 菜单
Docs 主页
/
MongoDB Kafka Connector
/ /

MongoDB 连接配置属性

在此页面上

  • Overview
  • 设置

使用以下配置设置指定MongoDB Kafka Sink connector如何与MongoDB cluster连接并通信。

有关按类别整理的接收器Connector配置设置列表,请参阅有关接收器连接器配置属性的指南。

名称
说明

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

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

Default: mongodb://localhost:27017
Accepted Values: A MongoDB connection URI string

server.api.version

Type: string

Description:
The Stable API version you want to use with your MongoDB server. For more information on the Stable API and versions of the server that support it, see the Stable API MongoDB server manual 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

后退

配置属性

在此页面上