Package eu.stratosphere.nephele.jobgraph

Examples of eu.stratosphere.nephele.jobgraph.JobGraph


    return getJobGraph(optPlan, prog.getAllLibraries());
  }
 
  private JobGraph getJobGraph(OptimizedPlan optPlan, List<File> jarFiles) {
    NepheleJobGraphGenerator gen = new NepheleJobGraphGenerator();
    JobGraph job = gen.compileJobGraph(optPlan);
   
    for (File jar : jarFiles) {
      job.addJar(new Path(jar.getAbsolutePath()));
    }
   
    return job;
  }
View Full Code Here


    return run(getOptimizedPlan(prog, parallelism), prog.getJarFiles(), wait);
  }
 

  public JobExecutionResult run(OptimizedPlan compiledPlan, List<File> libraries, boolean wait) throws ProgramInvocationException {
    JobGraph job = getJobGraph(compiledPlan, libraries);
    return run(job, wait);
  }
View Full Code Here

        showErrorPage(resp, "An invalid id for the job was provided.");
        return;
      }

      // get the retained job
      JobGraph job = submittedJobs.remove(uid);
      if (job == null) {
        resp.sendError(HttpServletResponse.SC_BAD_REQUEST,
          "No job with the given uid was retained for later submission.");
        return;
      }
View Full Code Here

      try {
        PactCompiler pc = new PactCompiler(new DataStatistics());
        OptimizedPlan op = pc.compile(plan);
       
        NepheleJobGraphGenerator jgg = new NepheleJobGraphGenerator();
        JobGraph jobGraph = jgg.compileJobGraph(op);
       
        JobClient jobClient = this.nephele.getJobClient(jobGraph);
        JobExecutionResult result = jobClient.submitJobAndWait();
        return result;
      }
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.jobgraph.JobGraph

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.