Java Code Examples for org.apache.hadoop.yarn.api.records.Container#getContainerToken()
The following examples show how to use
org.apache.hadoop.yarn.api.records.Container#getContainerToken() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NMClientAsyncImpl.java From hadoop with Apache License 2.0 | 5 votes |
public StartContainerEvent(Container container, ContainerLaunchContext containerLaunchContext) { super(container.getId(), container.getNodeId(), container.getContainerToken(), ContainerEventType.START_CONTAINER); this.container = container; this.containerLaunchContext = containerLaunchContext; }
Example 2
Source File: ContainerRemoteLaunchEvent.java From hadoop with Apache License 2.0 | 5 votes |
public ContainerRemoteLaunchEvent(TaskAttemptId taskAttemptID, ContainerLaunchContext containerLaunchContext, Container allocatedContainer, Task remoteTask) { super(taskAttemptID, allocatedContainer.getId(), StringInterner .weakIntern(allocatedContainer.getNodeId().toString()), allocatedContainer.getContainerToken(), ContainerLauncher.EventType.CONTAINER_REMOTE_LAUNCH); this.allocatedContainer = allocatedContainer; this.containerLaunchContext = containerLaunchContext; this.task = remoteTask; }
Example 3
Source File: NMClientAsyncImpl.java From big-c with Apache License 2.0 | 5 votes |
public StartContainerEvent(Container container, ContainerLaunchContext containerLaunchContext) { super(container.getId(), container.getNodeId(), container.getContainerToken(), ContainerEventType.START_CONTAINER); this.container = container; this.containerLaunchContext = containerLaunchContext; }
Example 4
Source File: ContainerRemoteLaunchEvent.java From big-c with Apache License 2.0 | 5 votes |
public ContainerRemoteLaunchEvent(TaskAttemptId taskAttemptID, ContainerLaunchContext containerLaunchContext, Container allocatedContainer, Task remoteTask) { super(taskAttemptID, allocatedContainer.getId(), StringInterner .weakIntern(allocatedContainer.getNodeId().toString()), allocatedContainer.getContainerToken(), ContainerLauncher.EventType.CONTAINER_REMOTE_LAUNCH); this.allocatedContainer = allocatedContainer; this.containerLaunchContext = containerLaunchContext; this.task = remoteTask; }
Example 5
Source File: NMCommunicatorLaunchRequestEvent.java From incubator-tez with Apache License 2.0 | 5 votes |
public NMCommunicatorLaunchRequestEvent(ContainerLaunchContext clc, Container container) { super(container.getId(), container.getNodeId(), container .getContainerToken(), NMCommunicatorEventType.CONTAINER_LAUNCH_REQUEST); this.clc = clc; this.container = container; }
Example 6
Source File: ContainerLauncherLaunchRequestEvent.java From tez with Apache License 2.0 | 5 votes |
public ContainerLauncherLaunchRequestEvent(ContainerLaunchContext clc, Container container, int launcherId, int schedulerId, int taskCommId) { super(container.getId(), container.getNodeId(), container .getContainerToken(), ContainerLauncherEventType.CONTAINER_LAUNCH_REQUEST, launcherId, schedulerId, taskCommId); this.clc = clc; this.container = container; }
Example 7
Source File: NMClientImpl.java From hadoop with Apache License 2.0 | 4 votes |
protected synchronized StartedContainer createStartedContainer( Container container) throws YarnException, IOException { StartedContainer startedContainer = new StartedContainer(container.getId(), container.getNodeId(), container.getContainerToken()); return startedContainer; }
Example 8
Source File: NMClientImpl.java From big-c with Apache License 2.0 | 4 votes |
protected synchronized StartedContainer createStartedContainer( Container container) throws YarnException, IOException { StartedContainer startedContainer = new StartedContainer(container.getId(), container.getNodeId(), container.getContainerToken()); return startedContainer; }