Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-1435

symlinks in cwd of the task are not handled properly after MAPREDUCE-896

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: tasktracker
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Fixes bugs in linux task controller and TaskRunner.setupWorkDir() related to handling of symlinks.

      Description

      With JVM reuse, TaskRunner.setupWorkDir() lists the contents of workDir and does a fs.delete on each path listed. If the listed file is a symlink to directory, it will delete the contents of those linked directories. This would delete files from distributed cache and jars directory,if mapred.create.symlink is true.
      Changing ownership/permissions of symlinks through ENABLE_TASK_FOR_CLEANUP would change ownership/permissions of underlying files.

      This is observed by Karam while running streaming jobs with DistributedCache and jvm reuse.

      1. 1435.patch
        7 kB
        Ravi Gummadi
      2. 1435.v1.patch
        12 kB
        Ravi Gummadi
      3. 1435.v2.patch
        19 kB
        Ravi Gummadi
      4. 1435.v3.patch
        25 kB
        Hemanth Yamijala
      5. 1435.v4.patch
        27 kB
        Hemanth Yamijala
      6. MR-1435-y20s.patch
        13 kB
        Hemanth Yamijala
      7. MR-1435-y20s-1.txt
        21 kB
        Hemanth Yamijala

        Issue Links

          Activity

          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Tom White made changes -
          Fix Version/s 0.21.0 [ 12314045 ]
          Fix Version/s 0.22.0 [ 12314184 ]
          Ravi Gummadi made changes -
          Release Note Fixes bugs in linux task controller and TaskRunner.setupWorkDir() related to handling of symlinks.
          Hemanth Yamijala made changes -
          Attachment MR-1435-y20s-1.txt [ 12438172 ]
          Hemanth Yamijala made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Hemanth Yamijala made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hemanth Yamijala made changes -
          Attachment 1435.v4.patch [ 12437873 ]
          Hemanth Yamijala made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Hemanth Yamijala made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hemanth Yamijala made changes -
          Attachment 1435.v3.patch [ 12437630 ]
          Hemanth Yamijala made changes -
          Attachment MR-1435-y20s.patch [ 12435154 ]
          Ravi Gummadi made changes -
          Attachment 1435.v2.patch [ 12434844 ]
          Ravi Gummadi made changes -
          Attachment 1435.v1.patch [ 12434519 ]
          Ravi Gummadi made changes -
          Attachment 1435.patch [ 12434516 ]
          Ravi Gummadi made changes -
          Assignee Ravi Gummadi [ ravidotg ]
          Amareshwari Sriramadasu made changes -
          Field Original Value New Value
          Link This issue is blocked by HADOOP-6531 [ HADOOP-6531 ]
          Amareshwari Sriramadasu created issue -

            People

            • Assignee:
              Ravi Gummadi
              Reporter:
              Amareshwari Sriramadasu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development