Kafka Connect is a key component that enables scalable and reliable data integration in Vultr Managed Apache Kafka® cluster. You can use Kafka Connect to move data in and out of topics in a Vultr Managed Apache Kafka®, providing an efficient way to integrate multiple applications such as databases, Object Storage, and Elasticsearch in your cluster.
Follow this guide to enable Kafka Connect in Vultr Managed Apache Kafka® and create new connectors using the Vultr Customer Portal or Vultr API.
Navigate to Products and click Databases.
Click your target Vultr Managed Apache Kafka® cluster to open its management page.
Navigate to the Kafka Connect tab.
Verify the list of available connectors compatible with your cluster.
Choose your desired connector type:
Click Add Connector.
Specify the connector label and specify the topics to link in your cluster.
Modify the default Config JSON parameters to include the connector information, such as:
Remove any unused optional properties in the connector configuration.
Click Add Connector to create the connector.
Verify the list of active connectors in the cluster.
Click Connector Status to monitor the connector status.
Click Edit Connector to modify the connector information.
Click Delete Connector to delete the connector.
Send a GET
request to the List Managed Databases endpoint and note the target database cluster's ID.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Database Available Connectors endpoint, specifing the database ID to list all available connectors and note the target connector class.
$ curl "https://api.vultr.com/v2/databases/{database-id}/available-connectors" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Get Database Connector Configuration Schema, specifying the target database ID and connector class to get the default connector configuration.
$ curl "https://api.vultr.com/v2/databases/{database-id}/available-connectors/{connector-class}/configuration" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Database Topics endpoint, specifying the target database ID to list all topics and note your target topic's ID.
$ curl "https://api.vultr.com/v2/databases/<database-id>/topics" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Database Connector endpoint, specifying the target database ID, connector class and topics to create a new connector.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"name" : "<connector-name>",
"class" : "<connector-class>",
"topics" : "<topic>",
"config" : {
"{configuration property}": <value>,
"{configuration property}": "<value>",
"{configuration property}": "<value>"
}
}'
Send a GET
request to the List Database Connectors endpoint, specifying the target database ID to list all active connectors.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Database Connector endpoint, specifying the target database ID and the connector name to update its configuration.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"topics" : "<topic>",
"config" : {
"{configuration property}": <value>,
"{configuration property}": "<value>",
"{configuration property}": "<value>"
}
}'
Send a GET
request to the Get Database Connector Status endpoint, specifyng the target database ID and the connector name to get its status information.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}/status" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Pause Database Connector endpoint, specifying the target database ID and the connector name to pause.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}/pause" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Resume Database Connector endpoint, specifying the target database ID and the connector name to resume.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}/resume" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Restart Database Connector Task endpoint, specifying the target database ID, and the connector task ID to restart.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}/tasks/{task-id}/restart" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Database Connector endpoint, specifying the target database ID and the connector name to delete from the cluster.
$ curl "https://api.vultr.com/v2/databases/{database-id}/connectors/{connector-name}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
No comments yet.