public class RMContainerTokenSecretManager
extends org.apache.hadoop.yarn.server.security.BaseContainerTokenSecretManager
Constructor and Description |
---|
RMContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
activateNextMasterKey()
Activate the new master-key
|
org.apache.hadoop.yarn.api.records.Token |
createContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int containerVersion,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.Priority priority,
long createTime) |
org.apache.hadoop.yarn.api.records.Token |
createContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId,
int containerVersion,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String appSubmitter,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.Priority priority,
long createTime,
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 execType,
long allocationRequestId,
Set<String> allocationTags)
Helper function for creating ContainerTokens.
|
org.apache.hadoop.yarn.server.api.records.MasterKey |
getNextKey() |
void |
rollMasterKey()
Creates a new master-key and sets it as the primary.
|
void |
start() |
void |
stop() |
createIdentifier, createNewMasterKey, createPassword, getCurrentKey, retrievePassword, retrievePasswordInternal
public RMContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf)
public void start()
public void stop()
@InterfaceAudience.Private public void rollMasterKey()
@InterfaceAudience.Private public org.apache.hadoop.yarn.server.api.records.MasterKey getNextKey()
@InterfaceAudience.Private public void activateNextMasterKey()
public org.apache.hadoop.yarn.api.records.Token createContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, int containerVersion, org.apache.hadoop.yarn.api.records.NodeId nodeId, String appSubmitter, org.apache.hadoop.yarn.api.records.Resource capability, org.apache.hadoop.yarn.api.records.Priority priority, long createTime)
public org.apache.hadoop.yarn.api.records.Token createContainerToken(org.apache.hadoop.yarn.api.records.ContainerId containerId, int containerVersion, org.apache.hadoop.yarn.api.records.NodeId nodeId, String appSubmitter, org.apache.hadoop.yarn.api.records.Resource capability, org.apache.hadoop.yarn.api.records.Priority priority, long createTime, 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 execType, long allocationRequestId, Set<String> allocationTags)
containerId
- Container IdcontainerVersion
- Container versionnodeId
- Node IdappSubmitter
- App Submittercapability
- Capabilitypriority
- PrioritycreateTime
- Create TimelogAggregationContext
- Log Aggregation ContextnodeLabelExpression
- Node Label ExpressioncontainerType
- Container TypeexecType
- Execution TypeallocationRequestId
- allocationRequestIdCopyright © 2008–2022 Apache Software Foundation. All rights reserved.