@InterfaceAudience.Public
@InterfaceStability.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 and Description |
---|---|
static class |
ContainerTokenIdentifier.Renewer |
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.io.Text |
KIND |
Constructor and Description |
---|
ContainerTokenIdentifier()
Default constructor needed by RPC layer/SecretManager.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
int containerVersion,
String hostName,
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,
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,
String hostName,
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,
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,
String hostName,
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,
String nodeLabelExpression,
org.apache.hadoop.yarn.server.api.ContainerType containerType,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId,
Set<String> allocationTags)
Create a Container Token Identifier.
|
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
String hostName,
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,
String hostName,
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,
String hostName,
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,
String nodeLabelExpression) |
ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
String hostName,
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,
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() |
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() |
String |
getNmHostAddress() |
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(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID, String hostName, 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, String hostName, 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, String hostName, 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, String nodeLabelExpression)
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID, String hostName, 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, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType)
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID, int containerVersion, String hostName, 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, 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, String hostName, 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, 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, String hostName, 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, String nodeLabelExpression, org.apache.hadoop.yarn.server.api.ContainerType containerType, org.apache.hadoop.yarn.api.records.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 org.apache.hadoop.yarn.api.records.ContainerId getContainerID()
public String getApplicationSubmitter()
public 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(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
public org.apache.hadoop.io.Text getKind()
getKind
in class org.apache.hadoop.security.token.TokenIdentifier
public org.apache.hadoop.security.UserGroupInformation getUser()
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
public int getVersion()
public String getNodeLabelExpression()
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.