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 <fhussonn...@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

Reply via email to