Issue Details (XML | Word | Printable)

Key: MAPREDUCE-720
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Sreekanth Ramakrishnan
Reporter: Vinod K V
Votes: 0
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Hadoop Map/Reduce

Task logs should have right access-control

Created: 07/Jul/09 05:06 AM   Updated: 10/Aug/09 10:55 AM
Return to search
Component/s: tasktracker
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works mapreduce-720-1.patch 2009-07-08 09:08 AM Sreekanth Ramakrishnan 9 kB
Text File Licensed for inclusion in ASF works mapreduce-720.patch 2009-07-08 03:47 AM Sreekanth Ramakrishnan 9 kB
Issue Links:
Incorporates
 
Reference
 

Resolution Date: 10/Aug/09 10:55 AM


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vinod K V added a comment - 07/Jul/09 05:11 AM
Setting proper access-control was originally aimed as part of HADOOP-4491, but moved out as HADOOP-4491 involved a huge patch. Task logs will still have 777(world read-write-executable) permissions after HADOOP-4491. This has to be fixed, in the minimum the world writable part of it.

Sreekanth Ramakrishnan added a comment - 08/Jul/09 03:47 AM
Attaching an initial patch which fixes the permissions of the task log file.

The approach taken by the patch is as follows:

  • When a JVM exits, we finialize the logs of the tasks which were associated with the task. We set the log files to have 700 permission and the files/folders are owned by task tracker.

Patch has to be applied over the patch attached in the JIRA HADOOP-4491


Sreekanth Ramakrishnan added a comment - 08/Jul/09 09:08 AM
Attaching a new patch, incorporating Vinod's and Hemanths offline comment:
  • Task log attempt directories now have 755 permission while JVM is executing tasks, which are owned by the user.
  • After task executions are done, all the attempt directories are changed to 700 and owned by TaskTracker.

Vinod K V added a comment - 10/Aug/09 10:55 AM
The latest approach slated at HADOOP-4491 invalidates this JIRA issue. Task-logs are set secure permissions of 2770 user:mapred as part of HADOOP-4491 itself. Closing this issue as a duplicate.