Kafka Connect - How to delete a connector

ぃ、小莉子 提交于 2019-12-10 14:17:47

问题


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?


回答1:


You can use the Kafka Connect REST API, which includes an endpoint for DELETEing a connector.

You might also be interested in Confluent CLI, using which you can simply issue confluent unload foo-connector to delete the connector specified.




回答2:


To delete a connector, you can run:

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


来源:https://stackoverflow.com/questions/48947250/kafka-connect-how-to-delete-a-connector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!