Examples of CMgrCompletedContainersEvent


Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                "Application Killed by ResourceManager"));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        String diagnostic = "";
        if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.ON_SHUTDOWN) {
          diagnostic = "Container Killed on Shutdown";
        } else if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.BY_RESOURCEMANAGER) {
          diagnostic = "Container Killed by ResourceManager";
        }
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container, diagnostic));
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

    List<ContainerId> containerIds =
      new ArrayList<ContainerId>(containers.keySet());

    LOG.info("Waiting for containers to be killed");

    this.handle(new CMgrCompletedContainersEvent(containerIds,
      CMgrCompletedContainersEvent.Reason.ON_NODEMANAGER_RESYNC));

    /*
     * We will wait till all the containers change their state to COMPLETE. We
     * will not remove the container statuses from nm context because these
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                diagnostic));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
          this.dispatcher.getEventHandler().handle(
              new ContainerKillEvent(container,
                  ContainerExitStatus.KILLED_BY_RESOURCEMANAGER,
                  "Container Killed by ResourceManager"));
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                "Application Killed by ResourceManager"));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container,
                "Container Killed by ResourceManager"));
      }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

    List<ContainerId> containerIds =
      new ArrayList<ContainerId>(containers.keySet());

    LOG.info("Waiting for containers to be killed");

    this.handle(new CMgrCompletedContainersEvent(containerIds,
      CMgrCompletedContainersEvent.Reason.ON_NODEMANAGER_RESYNC));
    while (!containers.isEmpty()) {
      try {
        Thread.sleep(1000);
        nodeStatusUpdater.getNodeStatusAndUpdateContainersInContext();
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                diagnostic));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
          this.dispatcher.getEventHandler().handle(
              new ContainerKillEvent(container,
                  "Container Killed by ResourceManager"));
      }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                "Application Killed by ResourceManager"));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container,
                "Container Killed by ResourceManager"));
      }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                "Application Killed by ResourceManager"));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        String diagnostic = "";
        if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.ON_SHUTDOWN) {
          diagnostic = "Container Killed on Shutdown";
        } else if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.BY_RESOURCEMANAGER) {
          diagnostic = "Container Killed by ResourceManager";
        }
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container, diagnostic));
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationFinishEvent(appID,
                "Application Killed by ResourceManager"));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        String diagnostic = "";
        if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.ON_SHUTDOWN) {
          diagnostic = "Container Killed on Shutdown";
        } else if (containersFinishedEvent.getReason() ==
            CMgrCompletedContainersEvent.Reason.BY_RESOURCEMANAGER) {
          diagnostic = "Container Killed by ResourceManager";
        }
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container, diagnostic));
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedContainersEvent

            new ApplicationEvent(appID,
                ApplicationEventType.FINISH_APPLICATION));
      }
      break;
    case FINISH_CONTAINERS:
      CMgrCompletedContainersEvent containersFinishedEvent =
          (CMgrCompletedContainersEvent) event;
      for (ContainerId container : containersFinishedEvent
          .getContainersToCleanup()) {
        this.dispatcher.getEventHandler().handle(
            new ContainerKillEvent(container,
                "Container Killed by ResourceManager"));
      }
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.