Skip to main content
The Azure Cosmos DB sink connector reads data from Kafka topics and writes data to Azure Cosmos DB (SQL API). The sink connector fully supports exactly-once semantics.
This connector is available as a built-in connector on StreamNative Cloud.

Prerequisites

  • An Azure Cosmos DB account with a database and container.
  • The Cosmos DB endpoint URI (connect.cosmos.connection.endpoint).
  • The Cosmos DB primary key (connect.cosmos.master.key).

Quick Start

  1. Setup the kcctl client: doc
  2. Create a JSON file like the following:
  3. Run the following command to create the connector:

Configuration

Configure the Azure Cosmos DB sink connector with the following properties:

Supported Data Formats

The sink connector supports the following data formats:

Supported Data Types

Azure Cosmos DB sink connector converts SinkRecord into JSON Document supporting the following schema types: For full details, see the Azure Cosmos DB sink connector documentation