-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
在服务器上非local模式,运行日志无法输出,提示日志框架冲突
[root@hadoop1 opt]# cp -r /opt/chunjun-master/chunjun-dist /opt/flink-1.12.7/lib/
[root@hadoop1 opt]# start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host hadoop1.
Starting taskexecutor daemon on host hadoop1.
[root@hadoop1 opt]# ll flink-1.12.7/log/
total 8
-rw-r--r--. 1 root root 1314 Nov 14 10:20 flink-root-standalonesession-3-hadoop1.out
-rw-r--r--. 1 root root 1316 Nov 14 10:20 flink-root-taskexecutor-3-hadoop1.out
[root@hadoop1 opt]# more flink-1.12.7/log/flink-root-standalonesession-3-hadoop1.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/chunjun-dist/chunjun-core.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/chunjun-dist/connector/hdfs/chunjun-connector-hdfs.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/chunjun-dist/connector/hive/chunjun-connector-hive.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/chunjun-dist/ddl/mysql/chunjun-ddl-mysql.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/chunjun-dist/restore-plugins/mysql/chunjun-restore-mysql.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/flink-1.12.7/lib/log4j-slf4j-impl-2.16.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
log4j:WARN No appenders could be found for logger (org.apache.flink.runtime.entrypoint.ClusterEntrypoint).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
What you expected to happen
在非local模式下,运行日志能正常输出。
How to reproduce
按readme.md中步骤运行其中非local模式的示例
Anything else
对此问题原因、解决方法,记录在:https://my.oschina.net/kenzheng/blog/5593939
Version
master
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct