Package eu.stratosphere.client.program

Examples of eu.stratosphere.client.program.Client


      String jarFile = JAR_FILE;
      String testData = getClass().getResource(TEST_DATA_FILE).toString();
     
      PackagedProgram program = new PackagedProgram(new File(jarFile), new String[] { testData });
           
      Client c = new Client(new InetSocketAddress("localhost", TEST_JM_PORT), new Configuration());
      c.run(program, 4, true);
    }
    catch (Throwable t) {
      System.err.println(t.getMessage());
      t.printStackTrace();
      Assert.fail("Error during the packaged program execution: " + t.getMessage());
View Full Code Here


      if (program == null) {
        printHelpForRun();
        return 1;
      }
     
      Client client = getClient(line);
      if (client == null) {
        printHelpForRun();
        return 1;
      }
   
View Full Code Here

        }
      }
     
      // check for json plan request
      if (plan) {
        Client client = getClient(line);
        String jsonPlan = client.getOptimizedPlanAsJson(program, parallelism);
       
        if (jsonPlan != null) {
          System.out.println("----------------------- Execution Plan -----------------------");
          System.out.println(jsonPlan);
          System.out.println("--------------------------------------------------------------");
View Full Code Here

    }
    return GlobalConfiguration.getConfiguration();
  }
 
  protected Client getClient(CommandLine line) throws IOException {
    return new Client(getJobManagerAddress(line), getGlobalConfiguration());
  }
View Full Code Here

      Assert.assertArrayEquals(new String[]{"some", "program"}, prog.getArguments());
      Assert.assertEquals(TEST_JAR_CLASSLOADERTEST_CLASS, prog.getMainClassName());

      Configuration c = new Configuration();
      c.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, "devil");
      Client cli = new Client(c);
     
      cli.getOptimizedPlanAsJson(prog, 666);
    } catch(ProgramInvocationException pie) {
      assertTrue("Classloader was not called", callme[0]);
      // class not found exception is expected as some point
      if( ! ( pie.getCause() instanceof ClassNotFoundException ) ) {
        System.err.println(pie.getMessage());
View Full Code Here

  private final Client client;            // the client used to compile and submit jobs


  public JobSubmissionServlet(Configuration nepheleConfig, File jobDir, File planDir) {
    this.client = new Client(nepheleConfig);
    this.jobStoreDirectory = jobDir;
    this.planDumpDirectory = planDir;

    this.submittedJobs = Collections.synchronizedMap(new HashMap<Long, JobGraph>());
View Full Code Here

  public RemoteExecutor(String hostname, int port, List<String> jarFiles) {
    this(new InetSocketAddress(hostname, port), jarFiles);
  }

  public RemoteExecutor(InetSocketAddress inet, List<String> jarFiles) {
    this.client = new Client(inet, new Configuration());
    this.jarFiles = jarFiles;
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.client.program.Client

Copyright © 2018 www.massapicom. 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.