Restart tasks

Restart DataStax Apache Kafka Connector tasks.

Use the Kafka Connect REST API to restart tasks:
curl -X POST "http://worker_ip:port/connectors/connector_name/tasks/task_id/restart"
  • worker_ip - The hostname or IP address of the Kafka Connect worker.
  • port - The listening port for the Kafka Connect REST API. By default this service runs on port 8083.
  • connector_name - DataStax Apache Kafka® Connector name.
  • task_id - Integer identifying the task. The maximum number of tasks a connector can use is set by tasks.max.

Example restart task

Restart task number 1:
curl -X POST "http://localhost:8083/connectors/cycling-comments-sink/tasks/0/restart"
Tip: On success there is no output for this command.