public class DelegationTokenFetcher extends Object
| 构造器和说明 |
|---|
DelegationTokenFetcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
cancelDelegationToken(String protocol,
InetSocketAddress addr,
Token<DelegationTokenIdentifier> tok,
Configuration conf)
Cancel a Delegation Token.
|
static Credentials |
getDTfromRemote(String protocol,
InetSocketAddress nnAddr,
String renewer,
Configuration conf)
Utility method to obtain a delegation token over http
|
protected static String |
getRenewAddress(String protocol,
InetSocketAddress addr,
Configuration conf)
Get the URI that we use for getting, renewing, and cancelling the
delegation token.
|
static void |
main(String[] args)
Command-line interface
|
static long |
renewDelegationToken(String protocol,
InetSocketAddress addr,
Token<DelegationTokenIdentifier> tok,
Configuration conf)
Renew a Delegation Token.
|
static void |
setupSsl(Configuration conf)
Set up SSL resources
|
public static void setupSsl(Configuration conf)
public static Credentials getDTfromRemote(String protocol, InetSocketAddress nnAddr, String renewer, Configuration conf) throws IOException
protocol - whether to use http or httpsnnAddr - the address for the NameNoderenewer - User that is renewing the ticket in such a requestconf - the configurationIOExceptionprotected static String getRenewAddress(String protocol, InetSocketAddress addr, Configuration conf)
public static long renewDelegationToken(String protocol, InetSocketAddress addr, Token<DelegationTokenIdentifier> tok, Configuration conf) throws IOException
protocol - The protocol to renew over (http or https)addr - the address of the NameNodetok - the token to renewconf - the configurationIOExceptionpublic static void cancelDelegationToken(String protocol, InetSocketAddress addr, Token<DelegationTokenIdentifier> tok, Configuration conf) throws IOException
nnAddr - the NameNode's addresstok - the token to cancelIOExceptionCopyright © 2009 The Apache Software Foundation