Re: Flink QuickStart: On start up, running into ClassNotFoundException: org.apache.flink.streaming.runtime.tasks.OneInputStreamTask
Posted by
Stephan Ewen on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-QuickStart-On-start-up-running-into-ClassNotFoundException-org-apache-flink-streaming-runtime-k-tp4273p4276.html
Hi!
Running this is Spring, the whole classloader configuration is probably a bit different than in Flink's standalone or YARN or local mode.
Can you try if the following solves your problem:
At the end of the file "BlobLibraryCacheManager", there is the private class "FlinkUserCodeClassloader".
Can you replace the current FlinkUserCodeClassloader with this?
private static class FlinkUserCodeClassLoader extends URLClassLoader {
public FlinkUserCodeClassLoader(URL[] urls) {
super(urls, FlinkUserCodeClassLoader.class.getClassLoader());
}
}
You can also try and use instead of "FlinkUserCodeClassLoader.class.getClassLoader()" the statements "Thread.currentThread().getContextClassLoader()".
Let me know if one of the two solves the problem.
Greetings,
Stephan