MapRTicketLocalizerpublic interface ExternalTokenLocalizer
The localized tokens will then be copied over to the container specific temp directory before localizing other resources and also before launching the task.
| 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 user,
org.apache.hadoop.conf.Configuration conf) |
Localizes any distribution specific tokens.
|
void run(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.String user,
org.apache.hadoop.conf.Configuration conf)
containerId - container iduser - userconf - YarnConfiguration instanceorg.apache.hadoop.fs.Path getTokenPath(java.lang.String appIdStr,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
appIdStr - application idconf - YarnConfiguration instancejava.io.IOExceptionjava.lang.String getTokenEnvVar()
void cleanup(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - application idCopyright © 2008–2025 Apache Software Foundation. All rights reserved.