flink-user-zh mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hongton122 <hongton...@163.com>
Subject Re:为什么Flink在运行时采用的是ChildFirstClassLoader?为什么没有采用默认的双亲模式?
Date Mon, 15 Jul 2019 03:13:15 GMT

The benefit of inverted classloading is that jobs can use different library versions than
Flink’s core itself, which is very useful when the different versions of the libraries are
not compatible. The mechanism helps to avoid the common dependency conflict errors like IllegalAccessError
or NoSuchMethodError. Different parts of the code simply have separate copies of the classes
(Flink’s core or one of its dependencies can use a different copy than the user code). In
most cases, this works well and no additional configuration from the user is needed

You can find some details at https://ci.apache.org/projects/flink/flink-docs-master/monitoring/debugging_classloading.html,
maybe it will help you.

在 2019-07-13 22:50:42,"徐涛" <xutao_ustc@163.com> 写道:
>Hi All,
>      看了Flink源代码,发现在实际运行的时候采用的是ChildFirstClassLoader,破坏了双亲模式,请问为什么采用这种设计,是有什么考虑吗?
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message