Kafka Sink
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Send data to Kafka topics.
Configuration Options
The following table summarizes the configuration options available for the kafka-sink Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
Bootstrap Servers | Required Comma separated list of Kafka Broker URLs. | string | |||
Topic Names | Required Comma separated list of Kafka topic names. | string | |||
OAuth Client ID | OAuth client ID. Required when saslAuthType is OAUTH. | string | |||
OAuth Client Secret | OAuth client secret. Required when saslAuthType is OAUTH. | string | |||
OAuth Scope | OAuth scope. Optional when saslAuthType is OAUTH. | string | |||
OAuth Token Endpoint | OAuth token endpoint URI. Required when saslAuthType is OAUTH. | string | |||
Authentication Type | Authentication type to use. Use NONE for no authentication, PLAIN or SCRAM_SHA_256/SCRAM_SHA_512 for username/password, SSL for certificate-based, OAUTH for OAuth 2.0, AWS_MSK_IAM for MSK, or KERBEROS for Kerberos. Enum values: * NONE * PLAIN * SCRAM_SHA_256 * SCRAM_SHA_512 * SSL * OAUTH * AWS_MSK_IAM * KERBEROS | string | NONE | ||
Password | Password for SASL authentication. Required when saslAuthType is PLAIN, SCRAM_SHA_256, or SCRAM_SHA_512. | string | |||
Username | Username for SASL authentication. Required when saslAuthType is PLAIN, SCRAM_SHA_256, or SCRAM_SHA_512. | string | |||
SSL Key Password | The password of the private key in the key store file. | string | |||
SSL Keystore Location | The location of the key store file. Used for mTLS authentication. | string | |||
SSL Keystore Password | The password for the key store file. | string | |||
SSL Truststore Location | The location of the trust store file. | string | |||
SSL Truststore Password | The password for the trust store file. | string |
Dependencies
At runtime, the kafka-sink Kamelet relies upon the presence of the following dependencies:
-
camel:core
-
camel:kafka
-
camel:kamelet
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-sink" You can now run it directly through the following command
camel run route.yaml