问题:
Exception in thread “Thread-6” java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration ‘classloader.check-leaked-classloader’.
Exception in thread "Thread-6" java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration 'classloader.check-leaked-classloader'.
at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.ensureInner(FlinkUserCodeClassLoaders.java:164)
at org.apache.flink.runtime.execution.librarycache

博客内容涉及Flink在运行时遇到一个异常,该异常指出尝试访问已关闭的类加载器。这个问题可能与第三方库有关,尤其是在静态字段中存储类加载器的情况。解决方案是在Flink的配置文件flink-conf.yaml中设置`classloader.check-leaked-classloader`为`false`,以禁用类加载器检查。
最低0.47元/天 解锁文章
4804

被折叠的 条评论
为什么被折叠?



