Flink ShutdownHookManager throws Trying to access closed classloader when destroying itself
I'm working on Flink application which has a kinesis consumer and ElasticSearch sink. My flink job works fine, I get the results I want, except at the end of application execution, when
I managed to debug it down to shutdown executor trying to retrieve shutdown timeout:
-
Which uses:
-
Exception is thrown on:
-
When
Does anyone know how to configure Flink application to have FlinkUserCodeClassLoader inner field set to anything but null on default Configuration object?
org.apache.hadoop.util ShutdownHookManager shutdownExecutor method is called I get this error:I managed to debug it down to shutdown executor trying to retrieve shutdown timeout:
-
getShutdownTimeout(conf); Which uses:
-
new Configuration() default configurationException is thrown on:
-
conf.getTimeDuration(...)When
Configuration class tries to access non existing inner field of FlinkUserCodeClassLoader.Does anyone know how to configure Flink application to have FlinkUserCodeClassLoader inner field set to anything but null on default Configuration object?
