public boolean configure(Target target, PType<?> ptype) { if (target instanceof MapReduceTarget) { if (target instanceof PathTarget) { multiPaths.put(jobCount, (PathTarget) target); } String name = PlanningParameters.MULTI_OUTPUT_PREFIX + jobCount; jobCount++; workingNode.setOutputName(name); ((MapReduceTarget) target).configureForMapReduce(job, ptype, path, name); return true; } return false; }
public boolean configure(Target target, PType<?> ptype) { if (target instanceof MapReduceTarget) { if (target instanceof PathTarget) { multiPaths.put(jobCount, (PathTarget) target); } String name = PlanningParameters.MULTI_OUTPUT_PREFIX + jobCount; jobCount++; workingNode.setOutputName(name); ((MapReduceTarget) target).configureForMapReduce(job, ptype, path, name); return true; } return false; }
public boolean configure(Target target, PType<?> ptype) { if (target instanceof MapReduceTarget && target instanceof PathTarget) { String name = PlanningParameters.MULTI_OUTPUT_PREFIX + multiPaths.size(); multiPaths.add(((PathTarget) target).getPath()); workingNode.setOutputName(name); ((MapReduceTarget) target).configureForMapReduce(job, ptype, path, name); return true; } if (target instanceof MapReduceTarget) { ((MapReduceTarget) target).configureForMapReduce(job, ptype, null, null); return true; } return false; }
} else { //if (t instanceof MapReduceTarget) { MapReduceTarget mrt = (MapReduceTarget) t; mrt.configureForMapReduce(job, ptype, pipeline.createTempPath(), "out0"); CrunchOutputs.OutputConfig outConfig = CrunchOutputs.getNamedOutputs(job.getConfiguration()).get("out0");
} else { //if (t instanceof MapReduceTarget) { MapReduceTarget mrt = (MapReduceTarget) t; mrt.configureForMapReduce(job, ptype, pipeline.createTempPath(), "out0"); CrunchOutputs.OutputConfig outConfig = CrunchOutputs.getNamedOutputs(job.getConfiguration()).get("out0");