[ 
https://issues.apache.org/jira/browse/HADOOP-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sreekanth Ramakrishnan updated HADOOP-4930:
-------------------------------------------

    Attachment: HADOOP-4930-1.patch

Attaching patch with initial implementation of setuid script, following are the 
features of the patch:

1. Spawns of task as the user who is passed to the script.
2. kills the spawned off task as the user who is passed to the script.

The script depends on the following configuration which is present in 
HADOOP_CONF_DIR/task-controller.cfg:
hadoop.tmp.dir=hadoop temp directories which TT would be using.
hadoop.pid.dir=directory where pid files for tt is stored.
hadoop.indent.str=used to figure out the pid file.

The HADOOP_CONF_DIR is passed as a pre-processor directive, using auto conf.

-
Steps to build the binary:

./configure (Requires, HADOOP_CONF_DIR)
make (builds the, binary in build folder, deletes the output from ./configure)



TODO:
1. Have to integrate parent pid checking in-order to figure out if the tt is 
the actual process which is spawning off the setuid script.

> Implement setuid executable for Linux to assist in launching tasks as job 
> owners
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-4930
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4930
>             Project: Hadoop Core
>          Issue Type: Sub-task
>          Components: mapred
>            Reporter: Hemanth Yamijala
>            Assignee: Sreekanth Ramakrishnan
>         Attachments: HADOOP-4930-1.patch
>
>
> HADOOP-4490 tracks the design and implementation of launching tasks as job 
> owners. As per discussion there, the proposal is to implement a setuid 
> executable for Linux that would be launched by the tasktracker to run tasks 
> as the job owners. In this task we will track the implementation of the 
> setuid executable. HADOOP-4490 will be used to track changes in the 
> tasktracker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to