camel-azure-cosmosdb-sink-kafka-connector sink configuration
Connector Description: Send Data to an Azure CosmosDB instance In the headers, you can optionally set the `itemPartitionKey` / `ce-itemPartitionKey` property to specify the partition key for a specific item. If you do not set the property in the header, you’ll need to use the static property itemPartitonKey. There are two different mechanism of authentication `SHARED_ACCOUNT_KEY` and `AZURE_IDENTITY`, you could specify with credentialType property. If you’re using `SHARED_ACCOUNT_KEY` accountKey property will be needed. In case of `AZURE_IDENTITY` selection, the DefaultAzureCredential will attempt to authenticate via the following mechanisms in the following order enviroment, Workload Identity, Managed Identity, Azure Developer CLI, IntelliJ, Azure CLI and Azure Powershell.
When using camel-azure-cosmosdb-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-azure-cosmosdb-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.azurecosmosdbsink.CamelAzurecosmosdbsinkSinkConnector
The camel-azure-cosmosdb-sink sink connector supports 6 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required The Azure Cosmos database name. | HIGH | ||
Required The Azure Cosmos container name. | HIGH | ||
The Azure Cosmos account Key. | MEDIUM | ||
Required Sets the Azure Cosmos database endpoint the component will connect to. | HIGH | ||
Represents a partition key value in the Azure Cosmos DB database service. A partition key identifies the partition where the item is stored in. | MEDIUM | ||
Determines the credential strategy to adopt. | "SHARED_ACCOUNT_KEY" | MEDIUM |
The camel-azure-cosmosdb-sink sink connector has no converters out of the box.
The camel-azure-cosmosdb-sink sink connector has no transforms out of the box.
The camel-azure-cosmosdb-sink sink connector has no aggregation strategies out of the box.