Skip to main content
The Azure Cosmos DB source connector reads data from Azure Cosmos DB (SQL API) change feed and writes data to Kafka topics. The source connector supports at-least once with multiple tasks and exactly-once for single tasks.
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 source connector with the following properties:

Supported Data Formats

The source connector supports the following data formats:

Supported Data Types

Azure Cosmos DB source connector converts JSON Document to Schema supporting the following data types: For full details, see the Azure Cosmos DB source connector documentation