How does Kafka deal with multiple versions of the same connector plugin provided in the 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. 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.
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.