Open odowdj opened 6 years ago
Any updates here? We are facing the same while deploying a custom connector but the LinkageError is for JsonNode class.
For me the fix was to exclude all dependencies that are provided by Kafka or the Kafka Connect runtime.
Hi there,
I am experiencing an intermittent problem during a deployment of Kafka Connect v4.0.0. I have two connectors:
Sometimes the S3SinkConnector randomly encounters the following error during a Kafka Connect deployment:
Caused by: java.lang.LinkageError: loader (instance of org/apache/kafka/connect/runtime/isolation/PluginClassLoader): attempted duplicate class definition for name: "org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl"
I've posted the full stack trace below.
DTDDVFactoryImpl
class belongs to the jarxercesImpl-2.9.1.jar
.It appears to be a class loader issue - i.e. two different class loaders are using the same class.
There is only one occurrence of
xercesImpl-2.9.1.jar
in the kafka connect docker image:I am passing the parameter to
CONNECT_PLUGIN_PATH=/usr/share/java
to Kafka Connect during start up. I am not passing anyCLASSPATH
parameter.I've found one other occurrence similar to it (different connector) and it was noted here https://groups.google.com/forum/#!topic/confluent-platform/WY9kR5RBcyI but no resolution was posted.
Have you any ideas how to resolve this issue?
Thanks James.
Full stack trace: