Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
The current implementation of the
KafkaValueOnlyDeserializerWrapper Class instantiates Deserializer from the ClassLoader of the KafkaValueOnlyDeserializerWrapper itself as following figure shows.
In case of both following conditions are met:
1. The connector-kafka get installed into Libs of Flink (rather than in the User Jar)
2. The user jar defines a customized Deserializer for Kafka Record.
The instantiation of the custom deserializer will fail due to NoClassFound exception because it is indeed not available in the system class loader.
As following figure illustrates
It can be fixed by using either UserCodeClassLoader or the ClassLoader of current Thread.
Attachments
Attachments
Issue Links
- links to