ExternalTokenLocalizerpublic class MapRTicketLocalizer extends java.lang.Object implements ExternalTokenLocalizer
YarnRuntimeException.
Note: Only a single instance of this class should be maintained per NodeManager process since some global state information is maintained here.
| Constructor | Description |
|---|---|
MapRTicketLocalizer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanup(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
Cleans up any resources tracked for the given application.
|
java.lang.String |
getTokenEnvVar() |
Returns the environment variable name that needs to be set to point to the
external token path.
|
org.apache.hadoop.fs.Path |
getTokenPath(java.lang.String appIdStr,
org.apache.hadoop.conf.Configuration conf) |
Returns the path of the localized token for given application id.
|
void |
run(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String username,
org.apache.hadoop.conf.Configuration conf) |
Localizes any distribution specific tokens.
|
public void run(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String username,
org.apache.hadoop.conf.Configuration conf)
ExternalTokenLocalizerrun in interface ExternalTokenLocalizercontainerId - container idusername - userconf - YarnConfiguration instancepublic org.apache.hadoop.fs.Path getTokenPath(java.lang.String appIdStr,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
ExternalTokenLocalizergetTokenPath in interface ExternalTokenLocalizerappIdStr - application idconf - YarnConfiguration instancejava.io.IOExceptionpublic java.lang.String getTokenEnvVar()
ExternalTokenLocalizergetTokenEnvVar in interface ExternalTokenLocalizerpublic void cleanup(org.apache.hadoop.yarn.api.records.ApplicationId appId)
ExternalTokenLocalizercleanup in interface ExternalTokenLocalizerappId - application idCopyright © 2008–2025 Apache Software Foundation. All rights reserved.