camel-mongodb-sink-kafka-connector sink configuration
Connector Description: Send data to MongoDB. This Kamelet expects a JSON-formatted body. In the header, you can set the `db-upsert` / `ce-dbupsert` property, a boolean value that specifies whether the database should create an element if it does not exist.
When using camel-mongodb-sink-kafka-connector as sink make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-mongodb-sink-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this sink connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.mongodbsink.CamelMongodbsinkSinkConnector
The camel-mongodb-sink sink connector supports 9 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required A comma-separated list of MongoDB host addresses in | HIGH | ||
Required The name of the MongoDB collection to bind to this endpoint. | HIGH | ||
A user password for accessing MongoDB. | MEDIUM | ||
A username for accessing MongoDB. | MEDIUM | ||
whether to enable ssl connection to mongodb. | true | MEDIUM | |
IMPORTANT this should be disabled only in test environment since can pose security issues. | true | MEDIUM | |
Required The name of the MongoDB database. | HIGH | ||
The level of acknowledgment requested from MongoDB for write operations. | MEDIUM | ||
Create a collection during initialization if it doesn’t exist. | false | MEDIUM |
The camel-mongodb-sink sink connector has no converters out of the box.
The camel-mongodb-sink sink connector has no transforms out of the box.
The camel-mongodb-sink sink connector has no aggregation strategies out of the box.