Search code examples
hadoopmapreducejobshadoop2

does Job instance takes a list of jobs in constructor in Hadoop?


Here is the snippet of code from Hadoop: The definitive guide book;

    ArrayList<Job> mergeDependencies = new ArrayList<Job>();
    mergeDependencies.add(listenersJob);
    mergeDependencies.add(sumJob);
    JobConf mergeConf = getMergeConf(outputDir, sumOutputDir, listenersOutputDir);
    Job mergeJob = new Job(mergeConf, mergeDependencies);

As you can notice, the constructor for Job takes a list of jobs. I went through the documentation for Job Class. I could not see any such constructors.


Solution

  • The code snippet you are using is referring org.apache.hadoop.mapred.jobcontrol.job class not mapreduce job that you are looking at, check out here