public class HdfsDtFetcher extends Object implements org.apache.hadoop.security.token.DtFetcher
| Constructor and Description |
|---|
HdfsDtFetcher() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.token.Token<?> |
addDelegationTokens(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.Credentials creds,
String renewer,
String url)
Returns Token object via FileSystem, null if bad argument.
|
org.apache.hadoop.io.Text |
getServiceName()
Returns the service name for HDFS, which is also a valid URL prefix.
|
boolean |
isTokenRequired() |
public org.apache.hadoop.io.Text getServiceName()
getServiceName in interface org.apache.hadoop.security.token.DtFetcherpublic boolean isTokenRequired()
isTokenRequired in interface org.apache.hadoop.security.token.DtFetcherpublic org.apache.hadoop.security.token.Token<?> addDelegationTokens(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.Credentials creds,
String renewer,
String url)
throws Exception
addDelegationTokens in interface org.apache.hadoop.security.token.DtFetcherconf - - a Configuration object used with FileSystem.get()creds - - a Credentials object to which token(s) will be addedrenewer - - the renewer to send with the token requesturl - - the URL to which the request is sentExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.