MongoDB
MongoDB sink connector
Description
Write data to MongoDB
Key features
Options
| name | type | required | default value |
|---|---|---|---|
| uri | string | yes | - |
| database | string | yes | - |
| collection | string | yes | - |
| common-options | config | no | - |
uri [string]
uri to write to mongoDB
database [string]
database to write to mongoDB
collection [string]
collection to write to mongoDB
common options
Sink plugin common parameters, please refer to Sink Common Options for details
Example
mongodb {
uri = "mongodb://username:password@127.0.0.1:27017/mypost?retryWrites=true&writeConcern=majority"
database = "mydatabase"
collection = "mycollection"
}
Changelog
2.2.0-beta 2022-09-26
- Add MongoDB Sink Connector