ruanwenjun edited a comment on issue #5199:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/5199#issuecomment-812814507


   I can kill the task, after install the `pstree` on my environment.
   And the task can be killed successfully.
   
![image](https://user-images.githubusercontent.com/22415594/113478959-9fc33680-94be-11eb-82cc-11294d960ebf.png)
   
   
   But there is still an error, that I don't have permission to kill the parent 
process, but I can kill the subprocess, so the task is still be killed.
   ```
   -+- 20788 root sudo -u ruanwenjun sh 
/tmp/dolphinscheduler/exec/process/1/4/73/76/4_73_76.command
    \-+- 20789 ruanwenjun sh 
/tmp/dolphinscheduler/exec/process/1/4/73/76/4_73_76.command
      \-+- 20795 ruanwenjun sh 
/tmp/dolphinscheduler/exec/process/1/4/73/76/4_73_76.command
        \--- 20796 ruanwenjun sleep 20
   ```
   ```java
   org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[131] 
- process id:20788, cmd:sudo -u ruanwenjun kill -9 20788 20789 20795 20796
   org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: 
kill: 20788: Operation not permitted
   ```
   
   


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


Reply via email to