public interface ExternalTokenManager
Modifier and Type | Method and Description |
---|---|
void |
generateToken(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appCtx,
String username,
org.apache.hadoop.conf.Configuration conf)
Generates a token and stores it in DFS.
|
void |
removeToken(org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.conf.Configuration conf)
Deletes the token from DFS.
|
void |
uploadTokenToDistributedCache(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Uploads token to DFS for the given application.
|
void uploadTokenToDistributedCache(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId
- application idvoid generateToken(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appCtx, String username, org.apache.hadoop.conf.Configuration conf)
void removeToken(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.conf.Configuration conf)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.