flink1.11好像是用的log4j2,我的mainjar用到了log4j,  两者类有冲突,导致JM、TM日志为空。

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/opt/job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/opt/flink-1.11.1-k8s/lib/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.

目前
1、mainjar中的log4j不能完全去掉,毕竟有很多地方在用,而且后期新增依赖也有可能会用,不太可行


大家又啥好办法嘛



--
Sent from: http://apache-flink.147419.n8.nabble.com/

回复