Package co.cask.cdap.api.mapreduce

Examples of co.cask.cdap.api.mapreduce.MapReduceContext


  @Override
  public void run() {
    try {
      LOG.info("Starting MapReduce workflow action: {}", mapReduceName);
      MapReduceContext mapReduceContext = mapReduceRunner.call();

      // TODO (terence) : Put something back to context.

      LOG.info("MapReduce workflow action completed: {}", mapReduceName);
    } catch (Exception e) {
View Full Code Here


   *
   * @throws Exception if execution failed.
   */
  private MapReduceContext runAndWait(Program program, ProgramOptions options) throws Exception {
    ProgramController controller = programRunner.run(program, options);
    final MapReduceContext context = (controller instanceof MapReduceProgramController)
                                        ? ((MapReduceProgramController) controller).getContext()
                                        : null;
    // Execute the program.
    final SettableFuture<MapReduceContext> completion = SettableFuture.create();
    controller.addListener(new AbstractListener() {
View Full Code Here

TOP

Related Classes of co.cask.cdap.api.mapreduce.MapReduceContext

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.