selectToken
public org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> selectToken(java.net.URI nnUri,
java.util.Collection<org.apache.hadoop.security.token.Token<?>> tokens,
org.apache.hadoop.conf.Configuration conf)
Select the delegation token for hdfs. The port will be rewritten to
the port of hdfs.service.host_$nnAddr, or the default rpc namenode port.
This method should only be called by non-hdfs filesystems that do not
use the rpc port to acquire tokens. Ex. webhdfs
- Parameters:
nnUri - of the remote namenode
tokens - as a collection
conf - hadoop configuration
- Returns:
- Token