Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
We should use the setsid command when the task is launched to create a new session. We should be able to use the setsid program when we launch the bash process to create a new session. That will allow us to kill the entire session with a single signal and remove the need for the ping methods in both TaskTracker.Child and pipes.
The patch uses setsid when creating new tasks sothat subprocesses of this process will be with in this new session(and this process will be the process leader for all the subprocesses). Thus killing the subprocesses becomes easy(just by killing all the processes in this process group) when killing the task.
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-4490 Map and Reduce tasks should run as the user who submitted the job
- Closed
- is duplicated by
-
MAPREDUCE-390 Corner case exists in detecting Java process deaths that might lead to orphan pipes processes lying around in memory
- Resolved
- relates to
-
HADOOP-1380 We should have a util.Subprocess class with utilities for starting subprocesses
- Open