提交 3d6462b5 编写于 作者: M Márton Balassi 提交者: Stephan Ewen

[streaming] Cluster trial & error

上级 9b34c8d2
......@@ -19,6 +19,7 @@ import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import eu.stratosphere.client.minicluster.NepheleMiniCluster;
import eu.stratosphere.client.program.JobWithJars;
import eu.stratosphere.configuration.ConfigConstants;
import eu.stratosphere.configuration.Configuration;
import eu.stratosphere.nephele.client.JobClient;
......@@ -45,7 +46,7 @@ public class WordCountCluster {
private static JobGraph getJobGraph() throws Exception {
JobGraphBuilder graphBuilder = new JobGraphBuilder("testGraph");
graphBuilder.setSource("WordCountSource", WordCountSource.class);
graphBuilder.setSource("WordCountSource", WordCountDummySource.class);
graphBuilder.setTask("WordCountSplitter", WordCountSplitter.class, 2);
graphBuilder.setTask("WordCountCounter", WordCountCounter.class, 2);
graphBuilder.setSink("WordCountSink", WordCountSink.class);
......@@ -75,10 +76,14 @@ public class WordCountCluster {
//JobClient client = exec.getJobClient(jG);
ClassLoader userClassLoader;
client.submitJobAndWait();
} catch (Exception e) {
System.out.println(e);
e.printStackTrace();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册