Search in sources :

Example 1 with Job

use of org.apache.hadoop.mapred.jobcontrol.Job in project hadoop by apache.

the class ValueAggregatorJob method createValueAggregatorJobs.

public static JobControl createValueAggregatorJobs(String[] args, Class<? extends ValueAggregatorDescriptor>[] descriptors) throws IOException {
    JobControl theControl = new JobControl("ValueAggregatorJobs");
    ArrayList<Job> dependingJobs = new ArrayList<Job>();
    JobConf aJobConf = createValueAggregatorJob(args);
    if (descriptors != null)
        setAggregatorDescriptors(aJobConf, descriptors);
    Job aJob = new Job(aJobConf, dependingJobs);
    theControl.addJob(aJob);
    return theControl;
}
Also used : ArrayList(java.util.ArrayList) JobControl(org.apache.hadoop.mapred.jobcontrol.JobControl) Job(org.apache.hadoop.mapred.jobcontrol.Job) JobConf(org.apache.hadoop.mapred.JobConf)

Aggregations

ArrayList (java.util.ArrayList)1 JobConf (org.apache.hadoop.mapred.JobConf)1 Job (org.apache.hadoop.mapred.jobcontrol.Job)1 JobControl (org.apache.hadoop.mapred.jobcontrol.JobControl)1