Package org.apache.flink.client.minicluster

Examples of org.apache.flink.client.minicluster.NepheleMiniCluster.start()


    NepheleMiniCluster testMiniCluster = null;
   
    try {
      testMiniCluster = new NepheleMiniCluster();
      testMiniCluster.setTaskManagerNumSlots(4);
      testMiniCluster.start();
     
      String jarFile = JAR_FILE;
      String testData = getClass().getResource(TEST_DATA_FILE).toString();
     
      PackagedProgram program = new PackagedProgram(new File(jarFile), new String[] { testData });
View Full Code Here


      String jarPath = "target/maven-test-jar.jar";

      // run KMeans
      cluster.setNumTaskManager(2);
      cluster.setTaskManagerNumSlots(2);
      cluster.start();

      RemoteExecutor ex = new RemoteExecutor("localhost", cluster.getJobManagerRpcPort());

      ex.executeJar(jarPath,
          "org.apache.flink.test.util.testjar.KMeansForTest",
View Full Code Here

    if (LOG.isInfoEnabled()) {
      LOG.info("Running on mini cluster");
    }

    try {
      exec.start();

      Client client = new Client(new InetSocketAddress("localhost",
          exec.getJobManagerRpcPort()), configuration, ClusterUtil.class.getClassLoader());
      client.run(jobGraph, true);
    } catch (ProgramInvocationException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.