.setHistoryText(iReduceStageHistoryText), 2);
ivertex.addTaskLocalFiles(commonLocalResources);
vertices.add(ivertex);
ByteArrayOutputStream finalReduceOutputStream = new ByteArrayOutputStream(4096);
finalReduceConf.writeXml(finalReduceOutputStream);
String finalReduceStageHistoryText = new String(finalReduceOutputStream.toByteArray(), "UTF-8");
UserPayload finalReducePayload = TezUtils.createUserPayloadFromConf(finalReduceConf);
Vertex finalReduceVertex = Vertex.create("finalreduce",
ProcessorDescriptor.create(
ReduceProcessor.class.getName())