Kafka Connect - How to delete a connector

el323 picture el323 · Feb 23, 2018 · Viewed 11.7k times · Source

I created a cassandra-sink connector after that I made some changes in connector.properties file. After stopping the worker and starting it again, now when I add the connector using:

java -jar kafka-connect-cli-1.0.6-all.jar create cassandra-sink-orders < cassandra-sink-distributed-orders.properties

I get the following error:

Error: the Kafka Connect API returned: Connector cassandra-sink-orders already exists (409) 

How can I remove the existing connector?

Answer

foxwendy picture foxwendy · Sep 4, 2018

To delete a connector, you can run:

curl -X DELETE http://localhost:8083/connectors/<connector-name>