Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2074

Compatibility issue with Yarn and Hadoop 0.23/2.x

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      Description

      We are using "yarn.resourcemanager.address" for checking the hadoop version in jobUtils. Here is the code snippet.
      // Hadoop 0.20/1.x.

            if (defaultConf.get("yarn.resourcemanager.address") == null) {
                // Duplicate hadoop 1.x code to workaround MAPREDUCE-2361 in Hadoop 0.20
                // Refer OOZIE-1806.
                String filepath = file.toUri().getPath();
                String classpath = conf.get("mapred.job.classpath.files");
                conf.set("mapred.job.classpath.files", classpath == null
                    ? filepath
                    : classpath + System.getProperty("path.separator") + filepath);
                URI uri = fs.makeQualified(file).toUri();
                DistributedCache.addCacheFile(uri, conf);
            }
            else { // Hadoop 0.23/2.x
                DistributedCache.addFileToClassPath(file, conf, fs);
            }
      

      But this is being used in JavaActionExecutor to set jobTracker.
      conf.set(HADOOP_YARN_RM, jobTracker);

        Attachments

        1. OOZIE-2074-v0.patch
          0.7 kB
          Jaydeep Vishwakarma

          Activity

            People

            • Assignee:
              jaydeepvishwakarma Jaydeep Vishwakarma
              Reporter:
              jaydeepvishwakarma Jaydeep Vishwakarma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: