You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/07/15 11:18:34 UTC

[GitHub] [dolphinscheduler] calvinjiang commented on issue #4834: process instance can not be stopped

calvinjiang commented on issue #4834:
URL: https://github.com/apache/dolphinscheduler/issues/4834#issuecomment-880612727


   @Yanwenjingcn 
   I encountered the same error like yours when I was stopping  a task that's the type of shell.
   
   ---------------------------
   [INFO] 2021-07-15 16:18:43.324 org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[95] - received kill command : TaskKillRequestCommand{taskInstanceId=230}
   [ERROR] 2021-07-15 16:18:43.328 org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[136] - kill task error
   java.io.IOException: Cannot run program "pstree": error=2, 没有那个文件或目录
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
           at org.apache.dolphinscheduler.common.shell.AbstractShell.runCommand(AbstractShell.java:145)
           at org.apache.dolphinscheduler.common.shell.AbstractShell.run(AbstractShell.java:124)
           at org.apache.dolphinscheduler.common.shell.ShellExecutor.execute(ShellExecutor.java:127)
           at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:104)
           at org.apache.dolphinscheduler.common.shell.ShellExecutor.execCommand(ShellExecutor.java:87)
           at org.apache.dolphinscheduler.common.utils.OSUtils.exeShell(OSUtils.java:442)
           at org.apache.dolphinscheduler.common.utils.OSUtils.exeCmd(OSUtils.java:431)
           at org.apache.dolphinscheduler.server.utils.ProcessUtils.getPidsStr(ProcessUtils.java:421)
           at org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor.doKill(TaskKillProcessor.java:126)
           at org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor.process(TaskKillProcessor.java:97)
           at org.apache.dolphinscheduler.remote.handler.NettyServerHandler.lambda$processReceived$0(NettyServerHandler.java:129)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: java.io.IOException: error=2, 没有那个文件或目录
           at java.lang.UNIXProcess.forkAndExec(Native Method)
           at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
           at java.lang.ProcessImpl.start(ProcessImpl.java:134)
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
           ... 16 common frames omitted
   ---------------------
   
   Cause:
     This error should be caused by missing the command of pstree in your OS. 
     
   Solution:
     You need to install it in your OS. Next line maybe useful for you:
     sudo  yum -y install psmisc
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org