fail("Job failed with exception: " + e.getMessage());
}
// attach the second part of the graph
AbstractJobVertex v2 = new AbstractJobVertex("vertex2");
v2.connectIdInput(new IntermediateDataSetID(), DistributionPattern.BIPARTITE);
List<AbstractJobVertex> ordered2 = new ArrayList<AbstractJobVertex>(Arrays.asList(v2));
try {
eg.attachJobGraph(ordered2);