@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
Exception
public static Credentials getDTfromRemote(String nnAddr, String renewer) throws IOException
IOException
public static long renewDelegationToken(String nnAddr, Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr
- the NameNode's addresstok
- the token to renewIOException
public static void cancelDelegationToken(String nnAddr, Token<DelegationTokenIdentifier> tok) throws IOException
nnAddr
- the NameNode's addresstok
- the token to cancelIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.