Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [ChunJun] optimize log #1400

Closed
3 tasks done
zhengchaoken opened this issue Nov 16, 2022 · 0 comments · Fixed by #1401
Closed
3 tasks done

[Bug] [ChunJun] optimize log #1400

zhengchaoken opened this issue Nov 16, 2022 · 0 comments · Fixed by #1401
Labels
bug Something isn't working

Comments

@zhengchaoken
Copy link
Contributor

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

@zhengchaoken zhengchaoken added the bug Something isn't working label Nov 16, 2022
FlechazoW pushed a commit that referenced this issue Nov 18, 2022
* fix BUG #1398,fix bsh,xml-resolver default version cannot access

* fix BUG #1400,fix multiple SLF4J bindings & no log logged in standalone,yarn-session,yarn-prejob
FlechazoW added a commit that referenced this issue Nov 18, 2022
…ne,yarn-session,yarn-prejob (#1401)

(cherry picked from commit eefae73)

Co-authored-by: FlechazoW <35768015+FlechazoW@users.noreply.github.com>
ll076110 pushed a commit that referenced this issue Mar 3, 2023
* fix BUG #1398,fix bsh,xml-resolver default version cannot access

* fix BUG #1400,fix multiple SLF4J bindings & no log logged in standalone,yarn-session,yarn-prejob

(cherry picked from commit 3ae4a9f)
Paddy0523 pushed a commit to Paddy0523/chunjun that referenced this issue May 18, 2023
…tandalone,yarn-session,yarn-prejob (DTStack#1401)

(cherry picked from commit eefae73)

Co-authored-by: FlechazoW <35768015+FlechazoW@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant