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

Ravi Gummadi updated MAPREDUCE-890:
-----------------------------------

    Attachment: MR890.patch

Attaching patch fixing the issue.

Patch does the following:
(1) When localizing userDir, in intialize_user(), we do "chmod 2770 -R 
taskTracker/$user" for tt_user(i.e. if jobOwner is same as tt_user) and "chmod 
2570 -R taskTracker/$user" otherwise.

(2) Similarly, 
(a) "chmod 2770 -R taskTracker/$user/jobcache/$jobid" for tt_user and "chmod 
2570 -R taskTracker/$user/jobcache/$jobid" otherwise.
(b) "chmod 2770 -R taskTracker/$user/distcache/<randomdir>" for tt_user and 
"chmod 2570 -R taskTracker/$user/distcache/<randomdir>" otherwise.

(3) compare_ownership() check was done in secure_path() sothat setting of 
permissions for distributed-cache files(for which permissions are already set 
earlier) will not go through chown and chmod again and again. This check is not 
needed after MAPREDUCE-1186(which is already committed to trunk). So deleted 
this check from secure_path().

(4) Modified TestLocalizationWithLinuxTaskController sothat validation of 
permissions of different files/directories will work properly in the cases of 
(a) jobOwner is tt_user and (b) any other user.

Please review and provide your comments.

> After HADOOP-4491, the user who started mapred system is not able to run job.
> -----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-890
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-890
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>            Reporter: Karam Singh
>            Assignee: Ravi Gummadi
>            Priority: Blocker
>             Fix For: 0.21.0
>
>         Attachments: MAPREDUCE-890-20090904.txt, MAPREDUCE-890-20090909.txt, 
> MR890.patch
>
>
> Even setup and cleanup task of job fails due exception -: It fails to create 
> job and related directories under mapred.local.dir/taskTracker/jobcache
> Directories are created as -:
> [dr-xrws--- mapred   hadoop  ]  job_200908190916_0002
> mapred is not wrtie under this. Even manually I failed to touch file.
> mapred is use of started mr cluster 

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