Hello, I don't want to use 「sudo-u」 scheduling tasks

so change 「conf/common.properties」 this configuration:

# use sudo or not, if set true, executing user is tenant user and deploy user 
needs sudo permissions; if set false, executing user is the deploy user and 
doesn't need sudo permissions
sudo.enable=false

but is invalid

shell task still use  「sudu -u」.

log info:
…..
[INFO] 2022-02-10 08:34:18.661 TaskLogLogger-class 
org.apache.dolphinscheduler.plugin.task.shell.ShellTask:[285] - task run 
command: sudo -u hadoop sh 
/home/hadoop/dolphinscheduler/temp/exec/process/4462120816128/4465215383552_1/13/15/13_15.command
[INFO] 2022-02-10 08:34:18.664 TaskLogLogger-class 
org.apache.dolphinscheduler.plugin.task.shell.ShellTask:[176] - process start, 
process id is: 92386
[INFO] 2022-02-10 08:34:18.671 TaskLogLogger-class 
org.apache.dolphinscheduler.plugin.task.shell.ShellTask:[200] - process has 
exited, execute 
path:/home/hadoop/dolphinscheduler/temp/exec/process/4462120816128/4465215383552_1/13/15,
 processId:92386 ,exitStatusCode:1 ,processWaitForStatus:true 
,processExitValue:1
[INFO] 2022-02-10 08:34:19.664 TaskLogLogger-class 
org.apache.dolphinscheduler.plugin.task.shell.ShellTask:[66] -  -> welcome to 
use bigdata scheduling system...
        hadoop 不在 sudoers 文件中。此事将被报告。
…...

Reply via email to