public class NMContainerTokenSecretManager
extends org.apache.hadoop.yarn.server.security.BaseContainerTokenSecretManager
| Constructor and Description |
|---|
NMContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
appFinished(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
boolean |
isValidStartContainerRequest(org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenId)
Ensure the startContainer call is not using an older cached key.
|
byte[] |
retrievePassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
Override of this is to validate ContainerTokens generated by using
different
MasterKeys. |
void |
setMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey masterKeyRecord)
Used by NodeManagers to create a token-secret-manager with the key obtained
from the RM.
|
void |
startContainerSuccessful(org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenId)
Container start has gone through.
|
createContainerToken, createIdentifier, createNewMasterKey, createPassword, getCurrentKey, retrievePasswordInternalpublic NMContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf)
@InterfaceAudience.Private public void setMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey masterKeyRecord)
masterKeyRecord - public byte[] retrievePassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
throws org.apache.hadoop.security.token.SecretManager.InvalidToken
MasterKeys.retrievePassword in class org.apache.hadoop.yarn.server.security.BaseContainerTokenSecretManagerorg.apache.hadoop.security.token.SecretManager.InvalidTokenpublic void startContainerSuccessful(org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenId)
public boolean isValidStartContainerRequest(org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenId)
public void appFinished(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.