chunjun
chunjun copied to clipboard
[bug][local doc] 本地运行没有日志
trafficstars
Search before asking
-
[X] I had searched in the issues and found no similar question.
-
[X] I had googled my question but i didn't get any help.
-
[X] I had read the documentation: ChunJun doc but it didn't help me.
Description
下载的包编译完之后在根目录 {chunjun_home} 下执行
sh bin/chunjun-local.sh -job chunjun-examples/json/stream/stream.json
结果报错:
Reference site: https://dtstack.github.io/chunjun
chunjun is starting ...
CHUNJUN_HOME is auto set /Users/xiehang/Desktop/git-project/chunjun/chunjun-dist
FLINK_HOME is empty!
HADOOP_HOME is empty!
start command: /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/bin/java -cp /Users/xiehang/Desktop/git-project/chunjun/chunjun-dist/../lib/chunjun-clients.jar:/Users/xiehang/Desktop/git-project/chunjun/chunjun-dist/../lib/* com.dtstack.chunjun.client.Launcher -job chunjun-examples/json/stream/stream.json -mode local -jobType sync -chunjunDistDir /Users/xiehang/Desktop/git-project/chunjun/chunjun-dist
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
请问下如何解决上述问题。
还有我看官方指导视频,他是在 chunjun-dist 内执行 sh bin/chunjun-local.sh -job chunjun-examples/json/stream/stream.json 但是我这个目录下并没有 bin 包
chunjun-core.jar connector ddl-plugins dirty-data-collector docker-build formats metrics restore-plugins
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
stream 的结果在本地文件nohup.out 里,另外,这个bin 目录在源码目录下,打包生成的包下是没有这部分的。
请问如何解决该问题
编译时把所有日志包都排除了,local模式肯定是看不到日志了,但是不排除日志yarn模式又会导致包冲突,有大神解决了这个问题吗
在./bin/submit.sh中加上日志jar的路径