How to shutdown or pause a Kafka connect cluster

5,935 views
Skip to first unread message

Andrew Stevenson

unread,
Jan 12, 2016, 6:47:34 PM1/12/16
to Confluent Platform
Hi Guys,

I see Connect has a Rest for creating and updating connectors/task and sinks but how can I shut down a cluster? What I'd like is a rest call to pause and shutdown. I know consumer has pause functionality. 

Thanks

Andrew

Alex Loddengaard

unread,
Jan 12, 2016, 7:07:29 PM1/12/16
to confluent...@googlegroups.com
Hi Andrew,

You can stop a specific connector by deleting the connector using the REST API [1]. You would need to make this REST call for every connector. If you have a lot of connectors running, you could write a little script that fetches the list of connectors [2] and deletes them one at a time, in a loop.

Or, more extreme, you could kill all worker processes from the command line. Then, to start Connect again, you'll need to restart worker processes and then re-create the connectors using the REST API.

I hope this answers your question.

Alex


--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/96c91ca8-8ace-4f78-ad3a-6cc166fb6007%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alex Loddengaard | Solutions Architect | Confluent
Download Apache Kafka and Confluent Platform: www.confluent.io/download

Ewen Cheslack-Postava

unread,
Jan 12, 2016, 8:14:31 PM1/12/16
to Confluent Platform
Pause/resume for connectors and tasks is planned, but didn't make it into the first release. If you want to you, can track progress on the feature here: https://issues.apache.org/jira/browse/KAFKA-2370

-Ewen


For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Ewen
Reply all
Reply to author
Forward
0 new messages