简体   繁体   English

指定 Kafka Connect 连接器插件版本

[英]Specify Kafka Connect connector plugin version

How does Kafka deal with multiple versions of the same connector plugin provided in the CLASSPATH ? Kafka 如何处理CLASSPATH提供的同一连接器插件的多个版本? For example, let's say I put both mongo-kafka-1.0.0-all.jar and mongo-kafka-1.1.0-all.jar into the respective directory, in order to allow using both versions, depending on what's needed.例如,假设我将mongo-kafka-1.0.0-all.jarmongo-kafka-1.1.0-all.jar放入各自的目录中,以便根据需要使用这两个版本。 Unfortunately, the docs do not give away a way to specify the version of connector.class , I can only assume this is dealt with like classloading is usually dealt with Java-wise.不幸的是,文档没有给出指定connector.class版本的方法,我只能假设这是处理类加载通常是处理 Java 明智的。

If you have the same connector plugin that shares the same connector class (eg io.confluent.connect.jdbc.JdbcSinkConnector ) and you want separate versions of that same connector JAR, you would need to run multiple Kafka Connect workers.如果您有共享相同连接器类的相同连接器插件(例如io.confluent.connect.jdbc.JdbcSinkConnector ),并且您想要同一连接器 JAR 的不同版本,则需要运行多个 Kafka Connect 工作器。

If you have different connectors that use different dependent JARs then this is handled by Kafka Connect's classpath isolation and the plugin.path setting.如果您有不同的连接器使用不同的依赖 JAR,那么这由 Kafka Connect 的类路径隔离和plugin.path设置处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM