you can disable this check with the configuration ‘classloader.check-leaked-classloader‘

  • Post author:
  • Post category:其他


Exception in thread “Thread-3” 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



S

a

f

e

t

y

N

e

t

W

r

a

p

p

e

r

C

l

a

s

s

L

o

a

d

e

r

.

e

n

s

u

r

e

I

n

n

e

r

(

F

l

i

n

k

U

s

e

r

C

o

d

e

C

l

a

s

s

L

o

a

d

e

r

s

.

j

a

v

a

:

164

)

a

t

o

r

g

.

a

p

a

c

h

e

.

f

l

i

n

k

.

r

u

n

t

i

m

e

.

e

x

e

c

u

t

i

o

n

.

l

i

b

r

a

r

y

c

a

c

h

e

.

F

l

i

n

k

U

s

e

r

C

o

d

e

C

l

a

s

s

L

o

a

d

e

r

s

SafetyNetWrapperClassLoader.ensureInner(FlinkUserCodeClassLoaders.java:164) at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders






S


a


f


e


t


y


N


e


t


W


r


a


p


p


e


r


C


l


a


s


s


L


o


a


d


e


r


.


e


n


s


u


r


e


I


n


n


e


r


(


F


l


i


n


k


U


s


e


r


C


o


d


e


C


l


a


s


s


L


o


a


d


e


r


s


.


j


a


v


a




:








1


6


4


)


a


t


o


r


g


.


a


p


a


c


h


e


.


f


l


i


n


k


.


r


u


n


t


i


m


e


.


e


x


e


c


u


t


i


o


n


.


l


i


b


r


a


r


y


c


a


c


h


e


.


F


l


i


n


k


U


s


e


r


C


o


d


e


C


l


a


s


s


L


o


a


d


e


r


s





SafetyNetWrapperClassLoader.getResource(FlinkUserCodeClassLoaders.java:183)

解决办法: 在 flink 配置文件里 flink-conf.yaml设置

classloader.check-leaked-classloader: false



版权声明:本文为paulgeorge9527原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。