@Private
public final class YarnServerSecurityUtils
extends java.lang.Object
| Modifier and Type | Method | 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.YarnException - exceptions from yarn servers.public 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 java.io.IOException
launchContext - ContainerLaunchContext.java.io.IOException - if there are I/O errors.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.