@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(Credentials credentials,
Text alias)
auxiliary method to get user's secret keys..
|
static void |
obtainTokensForNamenodes(Credentials credentials,
Path[] ps,
Configuration conf)
Convenience method to obtain delegation tokens from namenodes
corresponding to the paths passed.
|
public static byte[] getSecretKey(Credentials credentials, Text alias)
alias
- public static void obtainTokensForNamenodes(Credentials credentials, Path[] ps, Configuration conf) throws IOException
credentials
- ps
- array of pathsconf
- configurationIOException
public static void cleanUpTokenReferral(Configuration conf)
conf
- Copyright © 2020 Apache Software Foundation. All rights reserved.