final MapReduceSpecification mapReduceSpec = workflowSpec.getMapReduce().get(name);
Preconditions.checkArgument(mapReduceSpec != null,
"No MapReduce with name %s found in Workflow %s", name, workflowSpec.getName());
final Program mapReduceProgram = new WorkflowMapReduceProgram(workflowProgram, mapReduceSpec);
final ProgramOptions options = new SimpleProgramOptions(
mapReduceProgram.getName(),
new BasicArguments(ImmutableMap.of(
ProgramOptionConstants.RUN_ID, runId.getId(),
ProgramOptionConstants.LOGICAL_START_TIME, Long.toString(logicalStartTime),
ProgramOptionConstants.WORKFLOW_BATCH, name