[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796129#action_12796129
 ] 

Amareshwari Sriramadasu commented on MAPREDUCE-1186:
----------------------------------------------------

With public and private visibilities introduced for distributed cache 
files(through MAPREDUCE-744), the implementation for setting permissions for 
localized files changes in the following way:
1. Localized public files can have read and execute permissions for all the 
users, recursively on localized dir (Current DefaultTaskController's code)
2. Localized private files,
    a. With DefaultTaskController, can have recursive execute permission on the 
localized dir (Pre HADOOP-4490 code).
    b. With LinuxTaskController, owner is the user, group owner is TT, and the 
permissions are r_xrws___ on the localized dir(Current LinuxTaskController's 
code).

1 and 2(a) are different, because if the user has not give permissions for 
others(i.e. private files), I think we should not give permissions for all.

Thoughts

> While localizing a DistributedCache file, TT sets permissions recursively on 
> the whole base-dir
> -----------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1186
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1186
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>    Affects Versions: 0.21.0
>            Reporter: Vinod K V
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.22.0
>
>         Attachments: patch-1186-1.txt, patch-1186-2.txt, 
> patch-1186-3-ydist.txt, patch-1186-3-ydist.txt, patch-1186-3.txt, 
> patch-1186-ydist.txt, patch-1186-ydist.txt, patch-1186.txt
>
>
> This is a performance problem.

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