[英]Kafka Connect - How to delete a connector
I created a cassandra-sink connector after that I made some changes in connector.properties
file. 我之后创建了一个cassandra-sink连接器,我在
connector.properties
文件中做了一些更改。 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? 如何删除现有连接器?
要删除连接器,您可以运行:
curl -X DELETE http://localhost:8083/connectors/<connector-name>
You can use the Kafka Connect REST API , which includes an endpoint for DELETE
ing a connector. 您可以使用Kafka Connect REST API ,其中包括用于
DELETE
连接器的端点。
You might also be interested in Confluent CLI , using which you can simply issue confluent unload foo-connector
to delete the connector specified. 您可能还对Confluent CLI感兴趣,使用它可以简单地发出
confluent unload foo-connector
来删除指定的连接器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.