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

Amar Kamat updated MAPREDUCE-1422:
----------------------------------

    Attachment: mapreduce-1422-v1.4.2.patch

Attaching a patch for review. Changes are as follows
- Added a hook in task-controller.c for enabling job cleanup.
- Modified TestTaskTrackerLocalization to check if the default task-controller 
deletes job-local-dir with files in it such that the task-tracker doesn't have 
delete permissions.
- Added a new testcase (TestJobLocalDirCleanupWithLinuxTaskController) to check 
the above mentioned scenario with LinuxTaskController.
- Modified the framework to support job-local-dir cleanup 

test-patch passed. All tests except the following passed :
- TestMiniMRLocalFS 
- TestTTResourceReporting 
- TestTrackerDistributedCacheManager 
- TestFileArgs 
- TestSimulatorEndToEnd 
- TestSimulatorJobTracker 
- TestSimulatorSerialJobSubmission 
- TestSimulatorStressJobSubmission 

All the above failed on trunk too.

> Changing permissions of files/dirs under job-work-dir may be needed sothat 
> cleaning up of job-dir in all mapred-local-directories succeeds always
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1422
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1422
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>            Reporter: Ravi Gummadi
>         Attachments: mapreduce-1422-v1.4.2.patch
>
>
> After MAPREDUCE-896, if LinuxTaskController is set in config, task-controller 
> binary is launched for changing permissions of taskAttemptDir and taskWorkDir 
> before cleaning up of these directories sothat cleanup will be succeeded even 
> if user had created files/dirs under taskAttemptDir or taskWorkDir with 
> non-writable permissions. Users can't create files/dirs under job-dir 
> directly as we set 2570 for job-dir. But as job-work-dir has 2770 permissions 
> and user can create files/dirs under job-work-dir with non-writable 
> permissions, Changing permissions of files/dirs under job-work-dir may be 
> needed sothat cleaning up of job-dir in all mapred-local-directories succeeds 
> always.

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