|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.security.TokenCache
@InterfaceAudience.Public @InterfaceStability.Evolving public class TokenCache
This class provides user facing APIs for transferring secrets from the job client to the tasks. The secrets can be stored just before submission of jobs and read during the task execution.
Constructor Summary | |
---|---|
TokenCache()
|
Method Summary | |
---|---|
static void |
addDelegationToken(String namenode,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> t)
auxiliary method to add a delegation token |
static void |
addSecretKey(org.apache.hadoop.io.Text alias,
byte[] key)
auxiliary methods to store user' s secret keys |
static Collection<org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> |
getAllTokens()
auxiliary method |
static byte[] |
getSecretKey(org.apache.hadoop.io.Text alias)
auxiliary method to get user's secret keys.. |
static void |
obtainTokensForNamenodes(org.apache.hadoop.fs.Path[] ps,
org.apache.hadoop.conf.Configuration conf)
Convenience method to obtain delegation tokens from namenodes corresponding to the paths passed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenCache()
Method Detail |
---|
public static byte[] getSecretKey(org.apache.hadoop.io.Text alias)
alias
-
public static void addSecretKey(org.apache.hadoop.io.Text alias, byte[] key)
alias
- key
- public static void addDelegationToken(String namenode, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> t)
public static Collection<org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> getAllTokens()
public static void obtainTokensForNamenodes(org.apache.hadoop.fs.Path[] ps, org.apache.hadoop.conf.Configuration conf) throws IOException
ps
- array of pathsconf
- configuration
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |