Connect with Aiven for Apache Kafka® Connect service
Aiven for Apache Kafka Connect is a fully managed distributed Apache Kafka integration component, deployable in the cloud of your choice. Apache Kafka Connect lets you integrate your existing data sources and sinks with Apache Kafka.
This section provides you with information on how to connect Aiven for Apache Kafka Connect service with Klaw using SSL protocol.
Prerequisite
- Set up the connection between the Klaw APIs (Klaw Core API and Klaw Cluster
API) to use secure SSL, see
klaw-core-with-clusterapi
. This involves configuring theklaw.clusterapi.url
setting in the Klaw UI and testing the connectivity to ensure the two APIs can communicate over HTTPS.
Configure and connect with SSL protocol
Follow the steps below to configure and connect an Aiven for Apache Kafka Connect service with Klaw using SSL protocol:
-
In the Klaw web interface, navigate to Environments, and click Clusters.
-
On the Clusters page, click Add Cluster.
-
On the Add Kafka cluster page, enter the following details:
- Cluster Type: Select Kafka Connect from the drop-down list
- Cluster Name: Provide a name for the cluster*
- Protocol: Select SSL protocol for your cluster
- Kafka Flavor: Select Aiven for Apache Kafka as the flavor
- Project Name: Select the project name defined in the Aiven Console
- Bootstrap server: Enter the Service URI for your Apache Kafka Connect service. You can find the service URI in the Connection information page of your service in Aiven Console.
In the service URI, you can omit the
https://
portion of the URL and the user credentials. The Aiven for Apache Kafka Connect server details should typically start withkafkaconnect-<servicename>-<projectname>:<port>
.- Service Name: Enter the name of the service as defined in the Aiven Console for your Apache Kafka service
-
Click Save.
-
Add the cluster to the preferred environment. Click Environments from the Environments drop-down menu.
-
In the Kafka Connect Environments section, click Add Environment and enter the details to add your schema registry environment. Click Save.
-
Copy the Cluster ID from the Clusters page using the copy icon that is available on the right-hand side of each cluster row.
-
In the
application.properties
file forcluster-api
module, configure Aiven for Apache Kafka Connect credentials copied from Aiven console:clusterid.klaw.kafkaconnect.credentials=username:password
Replace
clusterid
with Klaw cluster ID copied from Klaw UI. -
Re-deploy the Klaw Cluster API with the updated configuration. This will apply the changes and enable Klaw to connect to the Aiven for Apache Kafka Connect service using SSL protocol.