@InterfaceAudience.Public @InterfaceStability.Evolving public class TokenCache extends Object
Constructor and Description |
---|
TokenCache() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUpTokenReferral(Configuration conf)
Remove jobtoken referrals which don't make sense in the context
of the task execution.
|
static byte[] |
getSecretKey(org.apache.hadoop.security.Credentials credentials,
Text alias)
auxiliary method to get user's secret keys..
|
static void |
obtainTokensForNamenodes(org.apache.hadoop.security.Credentials credentials,
Path[] ps,
Configuration conf)
Convenience method to obtain delegation tokens from namenodes
corresponding to the paths passed.
|
public TokenCache()
public static byte[] getSecretKey(org.apache.hadoop.security.Credentials credentials, Text alias)
alias
- public static void obtainTokensForNamenodes(org.apache.hadoop.security.Credentials credentials, Path[] ps, Configuration conf) throws IOException
credentials
- ps
- array of pathsconf
- configurationIOException
public static void cleanUpTokenReferral(Configuration conf)
conf
- Copyright © 2016 Apache Software Foundation. All rights reserved.