kafka azure schema registry sink Azure Kafka through Eventhubs with Azure Schema Registry Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send data to Kafka topics on Azure Eventhubs combined with Azure Schema Registry.

The Kamelet is able to understand the following headers to be set:

  • key / ce-key: as message key

  • partition-key / ce-partitionkey: as message partition key

Both the headers are optional.

Configuration Options

The following table summarizes the configuration options available for the kafka-azure-schema-registry-sink Kamelet:

Property Name Description Type Default Example

azureRegistryUrl

Azure Schema Registry URL

Required The Apicurio Schema Registry URL.

string

bootstrapServers

Bootstrap Servers

Required Comma separated list of Kafka Broker URLs.

string

password

Password

Required Password to authenticate to kafka.

string

topic

Topic Names

Required Comma separated list of Kafka topic names.

string

saslMechanism

SASL Mechanism

The Simple Authentication and Security Layer (SASL) Mechanism used.

string

PLAIN

securityProtocol

Security Protocol

Protocol used to communicate with brokers. SASL_PLAINTEXT, PLAINTEXT, SASL_SSL and SSL are supported.

string

SASL_SSL

specificAvroValueType

Specific Avro Value Type

The Specific Type Avro will have to deal with.

string

com.example.Order

valueSerializer

Value Deserializer

Deserializer class for value that implements the Deserializer interface.

string

com.microsoft.azure.schemaregistry.kafka.avro.KafkaAvroSerializer

Dependencies

At runtime, the kafka-azure-schema-registry-sink Kamelet relies upon the presence of the following dependencies:

  • mvn:org.apache.camel.kamelets:camel-kamelets-utils:4.6.0-SNAPSHOT

  • camel:core

  • camel:kafka

  • camel:kamelet

  • camel:azure-schema-registry

  • mvn:com.microsoft.azure:azure-schemaregistry-kafka-avro:1.1.1

  • mvn:com.azure:azure-data-schemaregistry-apacheavro:1.1.14

  • mvn:com.azure:azure-identity:1.11.2

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:kafka-azure-schema-registry-sink"

You can now run it directly through the following command

camel run route.yaml