HADOOP-12494. fetchdt stores the token based on token kind instead of token service (HeeSoo Kim via aw)
This commit is contained in:
parent
faeb6a3f89
commit
1396867b52
@ -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)
|
||||
|
@ -178,7 +178,7 @@ static void saveDelegationToken(Configuration conf, FileSystem fs,
|
||||
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user