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

Iyappan Srinivasan commented on MAPREDUCE-1677:
-----------------------------------------------

1) Vector cannot be used here because the requirement is go though every 
taskInfo , tasktracker, mapred.local.dir on every tasktracker, one by one. 
Catpturing this info in a string array and going through  them one by one, fits 
nicely for array.

2) Yes, there is a command called 
TaskTracker.getPrivateDistributedCacheDir(username). This will give 
mapred.local.dir/taskTracker/<username>/distcache. The requirement here is , 
path is required only till mapred.local.dir/taskTracker/<username> only and not 
the final distcache. So, either this full path can be got first and then take 
off the last word called distcache or do it like localDir + Path.SEPARATOR + 
TaskTracker.SUBDIR + Path.SEPARATOR +  userName. The latter seemed better 
because, this will work even if that word "dsitcache" is changed in the future.



> Test scenario for a distributed cache file behaviour  when the file is private
> ------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1677
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1677
>             Project: Hadoop Map/Reduce
>          Issue Type: Test
>          Components: test
>    Affects Versions: 0.22.0
>            Reporter: Iyappan Srinivasan
>            Assignee: Iyappan Srinivasan
>         Attachments: 
> TEST-org.apache.hadoop.mapred.TestDistributedCachePrivateFile.txt, 
> TestDistributedCachePrivateFile.patch, TestDistributedCachePrivateFile.patch
>
>
>  Verify the Distributed Cache functionality.
>  This test scenario is for a distributed cache file behaviour  when the file 
> is private. Once a job uses a distributed 
> cache file with private permissions that file is stored in the  
> mapred.local.dir, under the directory which has the same name 
>  as job submitter's username. The directory has 700 permission  and the file 
> under it, should have 777 permissions. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to