Commonize token selectors with fallback behavior
------------------------------------------------
Key: HDFS-3289
URL: https://issues.apache.org/jira/browse/HDFS-3289
Project: Hadoop HDFS
Issue Type: Improvement
Components: hdfs client, security
Affects Versions: 0.24.0
Reporter: Daryn Sharp
Priority: Minor
{{WebHdfsDelegationTokenSelector}} and {{HftpDelegationTokenSelector}} are
essentially the same. They could be refactored to a new class in
org.apache.hadoop.hdfs.security.token.delegation (or an inner class in
DelegationTokenSelector) and then pass TOKEN_KIND in the constructor. The
selector should look for the given kind, and if not found, fallback to looking
for the hdfs/rpc token.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira