Examples of finishApplication()


Examples of com.cloudera.iterativereduce.yarn.ResourceManagerHandler.finishApplication()

            "Encountered an error while trying to release unwanted containers",
            ex);
      }

      // Notify our handlers that we got a problem
      rmHandler.finishApplication("Unable to allocate containers, needed "
          + numContainers + ", but got " + allocatedContainers.size(),
          FinalApplicationStatus.FAILED);
      // bail
      return ReturnCode.MASTER_ERROR.getCode();
    }
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.ResourceManagerHandler.finishApplication()

          executor.shutdown();
         
          // Force kill our application, fail fast?
          LOG.info("At least one container failed with a non-zero exit code ("
              + exitCode + "); killing application");
          rmHandler
              .finishApplication(
                  "Failing, due to at least container coming back with an non-zero exit code.",
                  FinalApplicationStatus.KILLED);
         
          return -10;
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.ResourceManagerHandler.finishApplication()

    ReturnCode rc = (numFailedContainers.get() == 0) ? ReturnCode.OK
        : ReturnCode.CONTAINER_ERROR;

    try {
      if (numFailedContainers.get() == 0) {
        rmHandler.finishApplication("Completed succesfully",
            FinalApplicationStatus.SUCCEEDED);
      } else {
        String diag = "Completed with " + numFailedContainers.get()
            + " failed cotainers";
        rmHandler.finishApplication(diag, FinalApplicationStatus.FAILED);
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.ResourceManagerHandler.finishApplication()

        rmHandler.finishApplication("Completed succesfully",
            FinalApplicationStatus.SUCCEEDED);
      } else {
        String diag = "Completed with " + numFailedContainers.get()
            + " failed cotainers";
        rmHandler.finishApplication(diag, FinalApplicationStatus.FAILED);
      }
    } catch (YarnRemoteException ex) {
      LOG.warn(
          "Encounterd an error while trying to send final status to resource manager",
          ex);
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.