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 |
---|---|
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(LocalizerContext context,
org.apache.hadoop.conf.Configuration conf,
LocalDirsHandlerService localDirsHandlerService)
Localizes any distribution specific tokens.
|
void run(LocalizerContext context, org.apache.hadoop.conf.Configuration conf, LocalDirsHandlerService localDirsHandlerService)
context
- localizer contextconf
- YarnConfiguration instancelocalDirsHandlerService
- org.apache.hadoop.fs.Path getTokenPath(String appIdStr, org.apache.hadoop.conf.Configuration conf)
appIdStr
- application idconf
- YarnConfiguration instanceString getTokenEnvVar()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.