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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1.1
    • None
    • mrv1
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: