Examples of submitJobAndWait()


Examples of eu.stratosphere.nephele.client.JobClient.submitJobAndWait()

      Logger rtLogger = Logger.getLogger(Task.class);
      Level rtLevel = rtLogger.getEffectiveLevel();
      rtLogger.setLevel(Level.OFF);
     
      try {
        jobClient.submitJobAndWait();
      } catch (JobExecutionException e) {
        // Check if the correct error message is encapsulated in the exception
        if (e.getMessage() == null) {
          fail("JobExecutionException does not contain an error message");
        }
View Full Code Here

Examples of eu.stratosphere.nephele.client.JobClient.submitJobAndWait()

    public void run() {
      try {
        // submit failing job
        JobClient client = this.executor.getJobClient(this.failingJob);
        client.setConsoleStreamForReporting(AbstractTestBase.getNullPrintStream());
        client.submitJobAndWait();
       
        this.error = new Exception("The job did not fail.");
      } catch(JobExecutionException jee) {
        // as expected
      } catch (Exception e) {
View Full Code Here

Examples of eu.stratosphere.nephele.client.JobClient.submitJobAndWait()

     
      try {
        // submit working job
        JobClient client = this.executor.getJobClient(this.job);
        client.setConsoleStreamForReporting(AbstractTestBase.getNullPrintStream());
        client.submitJobAndWait();
      } catch (Exception e) {
        this.error = e;
      }
     
      // interrupt timeout thread
View Full Code Here

Examples of eu.stratosphere.nephele.client.JobClient.submitJobAndWait()

   
    client.setConsoleStreamForReporting(this.printStatusDuringExecution ? System.out : null);

    try {
      if (wait) {
        return client.submitJobAndWait();
      }
      else {
        JobSubmissionResult result = client.submitJob();
       
        if (result.getReturnCode() != ReturnCode.SUCCESS) {
View Full Code Here

Examples of eu.stratosphere.nephele.client.JobClient.submitJobAndWait()

       
        NepheleJobGraphGenerator jgg = new NepheleJobGraphGenerator();
        JobGraph jobGraph = jgg.compileJobGraph(op);
       
        JobClient jobClient = this.nephele.getJobClient(jobGraph);
        JobExecutionResult result = jobClient.submitJobAndWait();
        return result;
      }
      finally {
        if (shutDownAtEnd) {
          stop();
View Full Code Here

Examples of org.apache.flink.runtime.client.JobClient.submitJobAndWait()

   
    client.setConsoleStreamForReporting(this.printStatusDuringExecution ? System.out : null);

    try {
      if (wait) {
        return client.submitJobAndWait();
      }
      else {
        JobSubmissionResult result = client.submitJob();
       
        if (result.getReturnCode() != ReturnCode.SUCCESS) {
View Full Code Here

Examples of org.apache.flink.runtime.client.JobClient.submitJobAndWait()

  private JobGraphUtils() {}
 

  public static void submit(JobGraph graph, Configuration nepheleConfig) throws IOException, JobExecutionException {
    JobClient client = new JobClient(graph, nepheleConfig, JobGraphUtils.class.getClassLoader());
    client.submitJobAndWait();
  }
 
  public static <T extends FileInputFormat<?>> InputFormatVertex createInput(T stub, String path, String name, JobGraph graph,
      int degreeOfParallelism)
  {
View Full Code Here

Examples of org.apache.flink.runtime.client.JobClient.submitJobAndWait()

    public void run() {
      try {
        // submit failing job
        JobClient client = this.executor.getJobClient(this.failingJob);
        client.setConsoleStreamForReporting(AbstractTestBase.getNullPrintStream());
        client.submitJobAndWait();
       
        this.error = new Exception("The job did not fail.");
      } catch(JobExecutionException jee) {
        // as expected
      } catch (Exception e) {
View Full Code Here

Examples of org.apache.flink.runtime.client.JobClient.submitJobAndWait()

     
      try {
        // submit working job
        JobClient client = this.executor.getJobClient(this.job);
        client.setConsoleStreamForReporting(AbstractTestBase.getNullPrintStream());
        client.submitJobAndWait();
      } catch (Exception e) {
        this.error = e;
      }
     
      // interrupt timeout thread
View Full Code Here

Examples of org.apache.flink.runtime.client.JobClient.submitJobAndWait()

        NepheleJobGraphGenerator jgg = new NepheleJobGraphGenerator();
        JobGraph jobGraph = jgg.compileJobGraph(op);

        JobClient client = this.executor.getJobClient(jobGraph);
        client.setConsoleStreamForReporting(AbstractTestBase.getNullPrintStream());
        JobExecutionResult result = client.submitJobAndWait();
       
        this.latestResult = result;
        return result;
      }
      catch (Exception 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.