|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.tools.DelegationTokenFetcher
@InterfaceAudience.Private public class DelegationTokenFetcher
Fetch a DelegationToken from the current Namenode and store it in the specified file.
Constructor Summary | |
---|---|
DelegationTokenFetcher()
|
Method Summary | |
---|---|
static void |
cancelDelegationToken(String nnAddr,
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> tok)
Cancel a Delegation Token. |
static org.apache.hadoop.security.Credentials |
getDTfromRemote(String nnAddr,
String renewer)
|
static void |
main(String[] args)
Command-line interface |
static long |
renewDelegationToken(String nnAddr,
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> tok)
Renew a Delegation Token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegationTokenFetcher()
Method Detail |
---|
public static void main(String[] args) throws Exception
Exception
public static org.apache.hadoop.security.Credentials getDTfromRemote(String nnAddr, String renewer) throws IOException
IOException
public static long renewDelegationToken(String nnAddr, org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr
- the NameNode's addresstok
- the token to renew
IOException
public static void cancelDelegationToken(String nnAddr, org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr
- the NameNode's addresstok
- the token to cancel
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |