HADOOP-12494. fetchdt stores the token based on token kind instead of token service (HeeSoo Kim via aw)

This commit is contained in:
Allen Wittenauer 2015-10-27 12:01:50 -07:00
parent faeb6a3f89
commit 1396867b52
2 changed files with 4 additions and 1 deletions

View File

@ -516,6 +516,9 @@ Trunk (Unreleased)
HADOOP-12515. Mockito dependency is missing in hadoop-kafka module.
(Kai Zheng via aajisaka)
HADOOP-12494. fetchdt stores the token based on token kind instead
of token service (HeeSoo Kim via aw)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -178,7 +178,7 @@ public class DelegationTokenFetcher {
Token<?> token = fs.getDelegationToken(renewer);
if (null != token) {
Credentials cred = new Credentials();
cred.addToken(token.getKind(), token);
cred.addToken(token.getService(), token);
cred.writeTokenStorageFile(tokenFile, conf);
if (LOG.isDebugEnabled()) {