Hello Flink Community,
following the documentation to troubleshoot unloading of dynamically loaded classes in Flink I added the database driver library to the opt/flink/lib folder on both the Flink JobManager Container and TaskManager Containers running on K8s (Flink Session Cluster, version: 1.11).
I marked the library as provided in my build.sbt file. The rest of the user code is p[art of the fat jar build by sbt assembly.
Now when I submit a job to the flink cluster using the Flink API (upload and run endpoints) it won't accept the job due to the following error:
java.lang.ClassNotFoundException: com.vertica.jdbc.Driver
Why is the jar not picked up by the Flink classloader?
I even added the class pattern to the config option without any difference:
classloader.parent-first-patterns-additional: com.vertica.jdbc.;
Any recommendation would be highly appreciated.
Cheers