@InterfaceAudience.Private public class DelegationTokenFetcher extends Object
| Constructor and Description |
|---|
DelegationTokenFetcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cancelDelegationToken(String nnAddr,
Token<DelegationTokenIdentifier> tok)
Cancel a Delegation Token.
|
static Credentials |
getDTfromRemote(String nnAddr,
String renewer) |
static void |
main(String[] args)
Command-line interface
|
static long |
renewDelegationToken(String nnAddr,
Token<DelegationTokenIdentifier> tok)
Renew a Delegation Token.
|
public static void main(String[] args) throws Exception
Exceptionpublic static Credentials getDTfromRemote(String nnAddr, String renewer) throws IOException
IOExceptionpublic static long renewDelegationToken(String nnAddr, Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr - the NameNode's addresstok - the token to renewIOExceptionpublic static void cancelDelegationToken(String nnAddr, Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr - the NameNode's addresstok - the token to cancelIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.