直接执行shell和使用海豚调度shell的区别在哪里,为什么使用海豚调度执行shell会导致日志信息丢失 #15929
ouyangtijin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
直接执行shell和使用海豚调度shell的区别在哪里,为什么使用海豚调度执行shell会导致日志信息丢失。现象描述如下:shell脚本中通过调用beeline命令执行.sql文件,并且将执行日志信息打印到日志文件中,shell中调用beeline的命令以及日志文件导向语句如下:beeline --verbose=true --showNestedErrs=true --hivevar enddate=${v_end_date} -f ${v_jobname} 2>&1 | tee -a ${logfile}


单独执行shell脚本时,日志打印形式如下(可以将sql文件中的sql信息正常打印出来):
使用海豚调用shell脚本时,日志打印形式如下(sql文件中的sql信息都变成了空):
各位大佬这类问题该怎么解决,还请指导。
Beta Was this translation helpful? Give feedback.
All reactions