You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Florian Hussonnois <fh...@gmail.com> on 2016/06/14 14:04:35 UTC
How to gracefully shutdown Kafka Connector
Hi everyone,
I would like to know if there is a way to shutdown a connector
programmatically ?
On my project we have developped a sink-connector to write messages into
GZIP files for testing purposes. We would like to stop the connector after
no message is received for an elapsed time
Thanks,
--
Florian HUSSONNOIS
Re: How to gracefully shutdown Kafka Connector
Posted by Ewen Cheslack-Postava <ew...@confluent.io>.
There's no API for connectors to shut themselves down because that doesn't
really fit the streaming model that Kafka Connect works with -- it isn't a
batch processing system. If you want to shut down a connector, you'd
normally accomplish this via the REST API.
Technically you *could* accomplish this by making an HTTP request from your
connector, but I'm not sure where or how you'd determine that *none* of
your connector's tasks have produced any data for some time.
-Ewen
On Tue, Jun 14, 2016 at 7:04 AM, Florian Hussonnois <fh...@gmail.com>
wrote:
> Hi everyone,
>
> I would like to know if there is a way to shutdown a connector
> programmatically ?
>
> On my project we have developped a sink-connector to write messages into
> GZIP files for testing purposes. We would like to stop the connector after
> no message is received for an elapsed time
>
> Thanks,
>
> --
> Florian HUSSONNOIS
>
--
Thanks,
Ewen