如何删除 Kafka 中的连接器插件

How to delete a connector plugin in Kafka

这是我的连接器插件列表:

> curl localhost:8083/connector-plugins
{
    "class": "io.confluent.connect.activemq.ActiveMQSourceConnector",
    "type": "source",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
    "type": "sink",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.hdfs.HdfsSinkConnector",
    "type": "sink",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.hdfs.tools.SchemaSourceConnector",
    "type": "source",
    "version": "1.1.0-cp1"
}, {
    "class": "io.confluent.connect.ibm.mq.IbmMQSourceConnector",
    "type": "source",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.jdbc.JdbcSinkConnector",
    "type": "sink",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.jdbc.JdbcSourceConnector",
    "type": "source",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.jms.JmsSourceConnector",
    "type": "source",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.replicator.ReplicatorSourceConnector",
    "type": "source",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.s3.S3SinkConnector",
    "type": "sink",
    "version": "4.1.0"
}, {
    "class": "io.confluent.connect.storage.tools.SchemaSourceConnector",
    "type": "source",
    "version": "1.1.0-cp1"
}, {
    "class": "io.debezium.connector.mysql.MySqlConnector",
    "type": "source",
    "version": "0.7.5"
}, {
    "class": "org.apache.kafka.connect.file.FileStreamSinkConnector",
    "type": "sink",
    "version": "1.1.0-cp1"
}, {
    "class": "org.apache.kafka.connect.file.FileStreamSourceConnector",
    "type": "source",
    "version": "1.1.0-cp1"
}

如何删除以下连接器?

{
    "class": "io.debezium.connector.mysql.MySqlConnector",
    "type": "source",
    "version": "0.7.5"
}

将其从您的 plugin.path 中删除。

plugin.path 是安装所有连接器文件的路径。例如它可以是 /opt/confluent-7.0.0/share/confluent-hub-components/