@InterfaceAudience.Public @InterfaceStability.Evolving public class ContainerTokenIdentifier extends TokenIdentifier
ContainerId
,
Resource
needed by the container and the target NMs host-address.Constructor and Description |
---|
ContainerTokenIdentifier()
Default constructor needed by RPC layer/SecretManager.
|
ContainerTokenIdentifier(ContainerId containerID,
int containerVersion,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext,
String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
ExecutionType executionType) |
ContainerTokenIdentifier(ContainerId containerID,
int containerVersion,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext,
String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
ExecutionType executionType,
long allocationRequestId)
Convenience Constructor for existing clients.
|
ContainerTokenIdentifier(ContainerId containerID,
int containerVersion,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext,
String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
ExecutionType executionType,
long allocationRequestId,
Set<String> allocationTags)
Create a Container Token Identifier.
|
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime) |
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext)
Deprecated.
Use one of the other constructors instead.
|
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext,
String nodeLabelExpression) |
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext,
String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Set<String> |
getAllcationTags() |
long |
getAllocationRequestId() |
String |
getApplicationSubmitter() |
ContainerId |
getContainerID() |
org.apache.hadoop.yarn.server.api.ContainerType |
getContainerType()
Get the ContainerType of container to allocate.
|
long |
getCreationTime() |
ExecutionType |
getExecutionType()
Get the ExecutionType of container to allocate
|
long |
getExpiryTimeStamp() |
Text |
getKind()
Get the token kind
|
LogAggregationContext |
getLogAggregationContext() |
int |
getMasterKeyId() |
String |
getNmHostAddress() |
String |
getNodeLabelExpression()
Get the node-label-expression in the original ResourceRequest
|
Priority |
getPriority() |
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto |
getProto() |
Resource |
getResource() |
long |
getRMIdentifier()
Get the RMIdentifier of RM in which containers are allocated.
|
UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier
|
int |
getVersion()
Get the Container version
|
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
getBytes, getTrackingId
public static final Text KIND
public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime)
@Deprecated public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, 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(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext, String nodeLabelExpression)
public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType)
public ContainerTokenIdentifier(ContainerId containerID, int containerVersion, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType, ExecutionType executionType)
public ContainerTokenIdentifier(ContainerId containerID, int containerVersion, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType, ExecutionType executionType, long allocationRequestId)
containerID
- containerIDcontainerVersion
- containerVersionhostName
- hostNameappSubmitter
- appSubmitterr
- resourceexpiryTimeStamp
- expiryTimeStampmasterKeyId
- masterKeyIdrmIdentifier
- rmIdentifierpriority
- prioritycreationTime
- creationTimelogAggregationContext
- logAggregationContextnodeLabelExpression
- nodeLabelExpressioncontainerType
- containerTypeexecutionType
- executionTypeallocationRequestId
- allocationRequestIdpublic ContainerTokenIdentifier(ContainerId containerID, int containerVersion, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType, ExecutionType executionType, long allocationRequestId, Set<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 ContainerId getContainerID()
public String getApplicationSubmitter()
public String getNmHostAddress()
public Resource getResource()
public long getExpiryTimeStamp()
public int getMasterKeyId()
public Priority getPriority()
public long getCreationTime()
public long getRMIdentifier()
public org.apache.hadoop.yarn.server.api.ContainerType getContainerType()
public ExecutionType getExecutionType()
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto getProto()
public LogAggregationContext getLogAggregationContext()
public long getAllocationRequestId()
public void write(DataOutput out) throws IOException
Writable
out
.out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in
- DataInput
to deseriablize this object from.IOException
public Text getKind()
TokenIdentifier
getKind
in class TokenIdentifier
public UserGroupInformation getUser()
TokenIdentifier
getUser
in class TokenIdentifier
public int getVersion()
public String getNodeLabelExpression()
Copyright © 2018 Apache Software Foundation. All rights reserved.