ynlxc opened a new issue #832: [BUG] 开发模式下shell任务bug: sudo: sh: command not 
found
URL: https://github.com/apache/incubator-dolphinscheduler/issues/832
 
 
   **描述错误**
   IDEA开发模式,执行shell任务第一个节点时,总是会报错:[INFO] server.worker.log.TaskLogger:[163] - 
[taskAppId=TASK_4_47_93]  -> sudo: sh: command not found
   但是相同的代码,打包启动后,同一个shell任务,执行一切正常。。。
   
   **哪个版本的容易调度程序:**
   ——(1.1.0-preview)
   
   * *我的解决方法***
   修改代码:
   1、AbstractCommandExecutor.java
   //      processBuilder.command("sudo", "-u", tenantCode, commandType(), 
commandFile);
           processBuilder.command(commandType(), commandFile);
   
   2、ShellCommandExecutor.java
   //      public static final String SH = "/bin/sh";
           public static final String SH = "sh";

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to