public class GcsDtFetcher extends Object implements org.apache.hadoop.security.token.DtFetcher
org.apache.hadoop.hdfs.HdfsDtFetcher
.Constructor and Description |
---|
GcsDtFetcher() |
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 GCS, which is also a valid URL prefix.
|
boolean |
isTokenRequired() |
public org.apache.hadoop.io.Text getServiceName()
getServiceName
in interface org.apache.hadoop.security.token.DtFetcher
public boolean isTokenRequired()
isTokenRequired
in interface org.apache.hadoop.security.token.DtFetcher
public 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.DtFetcher
conf
- - 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 sentException
Copyright © 2019. All rights reserved.