@InterfaceAudience.Private public final class YarnServerSecurityUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.yarn.security.AMRMTokenIdentifier |
authorizeRequest()
Authorizes the current request and returns the AMRMTokenIdentifier for the
current application.
|
static org.apache.hadoop.security.Credentials |
parseCredentials(org.apache.hadoop.yarn.api.records.ContainerLaunchContext launchContext)
Parses the container launch context and returns a Credential instance that
contains all the tokens from the launch context.
|
static void |
updateAMRMToken(org.apache.hadoop.yarn.api.records.Token token,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.conf.Configuration conf)
Update the new AMRMToken into the ugi used for RM proxy.
|
public static org.apache.hadoop.yarn.security.AMRMTokenIdentifier authorizeRequest()
throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionpublic static void updateAMRMToken(org.apache.hadoop.yarn.api.records.Token token,
org.apache.hadoop.security.UserGroupInformation user,
org.apache.hadoop.conf.Configuration conf)
token - the new AMRMToken sent by RMuser - ugi used for RM proxyconf - configurationpublic static org.apache.hadoop.security.Credentials parseCredentials(org.apache.hadoop.yarn.api.records.ContainerLaunchContext launchContext)
throws IOException
launchContext - IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.