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


   I also have the problem, but my problem is due to no permission.
   When I run a shell task by a specific tenant.
   ```
   [INFO] 2021-04-03 13:17:27.347  - [taskAppId=TASK-4-62-65]:[327] - task run 
command:
   sudo -u ruanwenjun sh 
/tmp/dolphinscheduler/exec/process/1/4/62/65/4_62_65.command
   [INFO] 2021-04-03 13:17:27.348  - [taskAppId=TASK-4-62-65]:[202] - process 
start, process id is: 7191
   ```
   And I find that the task is running by root.
   
![image](https://user-images.githubusercontent.com/22415594/113469309-31ab4f00-947f-11eb-8bba-5340a1057444.png)
   
   And when I stop the task, it tells me that I don't have permission.
   ```java
   [INFO] 2021-04-03 13:17:38.941 
org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[95] - 
received kill command : TaskKillRequestCommand{taskInstanceId=65}
   [INFO] 2021-04-03 13:17:38.941 
org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[131] - 
process id:7191, cmd:sudo -u ruanwenjun kill -9 7191
   [ERROR] 2021-04-03 13:17:38.979 
org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor:[137] - 
kill task error
   org.apache.dolphinscheduler.common.shell.AbstractShell$ExitCodeException: 
kill: 7191: Operation not permitted
   ```
   So my task can run successful, but can not stop.


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