org.apache.hadoop.io.Writable@Public
@Evolving
public class ContainerTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
ContainerId,
Resource needed by the container and the target NMs host-address.| Modifier and Type | Class | Description |
|---|---|---|
static class |
ContainerTokenIdentifier.Renewer |
| Modifier and Type | Field | Description |
|---|---|---|
static org.apache.hadoop.io.Text |
KIND |
| Constructor | Description |
|---|---|
ContainerTokenIdentifier() |
Default constructor needed by RPC layer/SecretManager.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType) |
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId) |
Convenience Constructor for existing clients.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId,
java.util.Set<java.lang.String> allocationTags) |
Create a Container Token Identifier.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime) |
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext) |
Deprecated.
Use one of the other constructors instead.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression) |
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
java.util.Set<java.lang.String> |
getAllcationTags() |
|
long |
getAllocationRequestId() |
|
java.lang.String |
getApplicationSubmitter() |
|
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerID() |
|
org.apache.hadoop.yarn.server.api.ContainerType |
getContainerType() |
Get the ContainerType of container to allocate.
|
long |
getCreationTime() |
|
org.apache.hadoop.yarn.api.records.ExecutionType |
getExecutionType() |
Get the ExecutionType of container to allocate
|
long |
getExpiryTimeStamp() |
|
org.apache.hadoop.io.Text |
getKind() |
|
org.apache.hadoop.yarn.api.records.LogAggregationContext |
getLogAggregationContext() |
|
int |
getMasterKeyId() |
|
java.lang.String |
getNmHostAddress() |
|
java.lang.String |
getNodeLabelExpression() |
Get the node-label-expression in the original ResourceRequest.
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
|
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto |
getProto() |
|
org.apache.hadoop.yarn.api.records.Resource |
getResource() |
|
long |
getRMIdentifier() |
Get the RMIdentifier of RM in which containers are allocated.
|
org.apache.hadoop.security.UserGroupInformation |
getUser() |
|
int |
getVersion() |
Get the Container version
|
int |
hashCode() |
|
void |
readFields(java.io.DataInput in) |
|
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime)
@Deprecated
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext)
appSubmitter - appSubmittercontainerID - container IDcreationTime - creation timeexpiryTimeStamp - expiry timestamphostName - hostnamelogAggregationContext - log aggregation contextmasterKeyId - master key IDpriority - priorityr - resource needed by the containerrmIdentifier - ResourceManager identifierpublic ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression)
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType)
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType)
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId)
containerID - containerIDcontainerVersion - containerVersionhostName - hostNameappSubmitter - appSubmitterr - resourceexpiryTimeStamp - expiryTimeStampmasterKeyId - masterKeyIdrmIdentifier - rmIdentifierpriority - prioritycreationTime - creationTimelogAggregationContext - logAggregationContextnodeLabelExpression - nodeLabelExpressioncontainerType - containerTypeexecutionType - executionTypeallocationRequestId - allocationRequestIdpublic ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
java.lang.String hostName,
java.lang.String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
org.apache.hadoop.yarn.api.records.Priority priority,
long creationTime,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
java.lang.String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId,
java.util.Set<java.lang.String> allocationTags)
containerID - containerIDcontainerVersion - containerVersionhostName - hostNameappSubmitter - appSubmitterr - resourceexpiryTimeStamp - expiryTimeStampmasterKeyId - masterKeyIdrmIdentifier - rmIdentifierpriority - prioritycreationTime - creationTimelogAggregationContext - logAggregationContextnodeLabelExpression - nodeLabelExpressioncontainerType - containerTypeexecutionType - executionTypeallocationRequestId - allocationRequestIdallocationTags - Set of allocation Tags.public ContainerTokenIdentifier()
public org.apache.hadoop.yarn.api.records.ContainerId getContainerID()
public java.lang.String getApplicationSubmitter()
public java.lang.String getNmHostAddress()
public org.apache.hadoop.yarn.api.records.Resource getResource()
public long getExpiryTimeStamp()
public int getMasterKeyId()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public long getCreationTime()
public long getRMIdentifier()
public org.apache.hadoop.yarn.server.api.ContainerType getContainerType()
public org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto getProto()
public org.apache.hadoop.yarn.api.records.LogAggregationContext getLogAggregationContext()
public long getAllocationRequestId()
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.io.Text getKind()
getKind in class org.apache.hadoop.security.token.TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
getUser in class org.apache.hadoop.security.token.TokenIdentifierpublic int getVersion()
public java.lang.String getNodeLabelExpression()
public java.util.Set<java.lang.String> getAllcationTags()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.