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

flinkx 本地win10不报错, 打包好放到 centos7 报错了, Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext 具体帮忙看看 剩下的 代码 #360

Closed
ithjz opened this issue Mar 22, 2021 · 2 comments

Comments

@ithjz
Copy link

ithjz commented Mar 22, 2021

flinkx 本地win10不报错, 打包好放到 centos7 报错了, Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext 具体帮忙看看 剩下的 代码

Exception in thread "main" java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.q os.logback.classic.LoggerContext
at com.dtstack.flinkx.launcher.Launcher.setLogLevel(Launcher.java:278)
at com.dtstack.flinkx.launcher.Launcher.main(Launcher.java:96)
Exception in thread "main" java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.q os.logback.classic.LoggerContext
at com.dtstack.flinkx.launcher.Launcher.setLogLevel(Launcher.java:278)
at com.dtstack.flinkx.launcher.Launcher.main(Launcher.java:96)

@ithjz
Copy link
Author

ithjz commented Mar 22, 2021

sh flinkx -mode local -job /data01/soft/1flinkx2ckrw/docs/example/c1.json -pluginRoot syncplugins -flinkconf flinkconf

cat nohup.out
Exception in thread "main" java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
at com.dtstack.flinkx.launcher.Launcher.setLogLevel(Launcher.java:278)
at com.dtstack.flinkx.launcher.Launcher.main(Launcher.java:96)

@kanata163
Copy link
Contributor

setLogLevel这个方法在新的版本中应该都被移除了,你同步一下GitHub上FlinkX的代码,然后重新编译下launcher模块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants