camel-mongodb-sink-kafka-connector sink configuration
Connector Description: Send documents to MongoDB. This Kamelet expects a JSON as body. Properties you can as headers: `db-upsert` / `ce-dbupsert` If the database should create the element if it does not exist. Boolean value.
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 7 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required Comma separated list of MongoDB Host Addresses in host:port format. |
HIGH |
||
Required Sets the name of the MongoDB collection to bind to this endpoint. |
HIGH |
||
User password for accessing MongoDB. |
MEDIUM |
||
Username for accessing MongoDB. |
MEDIUM |
||
Required Sets the name of the MongoDB database to target. |
HIGH |
||
Configure the level of acknowledgment requested from MongoDB for write operations, possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED, MAJORITY. |
MEDIUM |
||
Create collection during initialisation 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.