Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4964

JobLocalizer#localizeJobFiles can potentially write job.xml to the wrong user's directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: mrv1
    • Labels:
      None
    • Target Version/s:

      Description

      In the following code, if jobs corresponding to different users (X and Y) are localized simultaneously, it is possible that jobconf can be written to the wrong user's directory. (X's job.xml can be written to Y's directory)

        public void localizeJobFiles(JobID jobid, JobConf jConf,
            Path localJobTokenFile, TaskUmbilicalProtocol taskTracker)
            throws IOException, InterruptedException {
          localizeJobFiles(jobid, jConf,
              lDirAlloc.getLocalPathForWrite(JOBCONF, ttConf), localJobTokenFile,
              taskTracker);
        }
      

        Attachments

        1. MR-4964.patch
          0.9 kB
          Karthik Kambatla
        2. MR-4964.patch
          3 kB
          Karthik Kambatla

          Issue Links

            Activity

              People

              • Assignee:
                kasha Karthik Kambatla
                Reporter:
                kasha Karthik Kambatla
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: