public 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 and Description |
---|---|
void |
cleanup(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Cleans up any resources tracked for the given application.
|
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(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,
String user,
org.apache.hadoop.conf.Configuration conf)
Localizes any distribution specific tokens.
|
void run(org.apache.hadoop.yarn.api.records.ContainerId containerId, String user, org.apache.hadoop.conf.Configuration conf)
containerId
- container iduser
- userconf
- YarnConfiguration instanceorg.apache.hadoop.fs.Path getTokenPath(String appIdStr, org.apache.hadoop.conf.Configuration conf)
appIdStr
- application idconf
- YarnConfiguration instanceString getTokenEnvVar()
void cleanup(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId
- application idCopyright © 2018 Apache Software Foundation. All Rights Reserved.