Skip to content

Commit c01a191

Browse files
committed
MAPREDUCE-2710. Update JobSubmitter.printTokens(..) for HDFS-2161.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1148367 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3c46470 commit c01a191

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mapreduce/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ Trunk (unreleased changes)
341341

342342
MAPREDUCE-2670. Fixing spelling mistake in FairSchedulerServlet.java. (eli)
343343

344+
MAPREDUCE-2710. Update JobSubmitter.printTokens(..) for HDFS-2161.
345+
(szetszwo)
346+
344347
Release 0.22.0 - Unreleased
345348

346349
INCOMPATIBLE CHANGES

mapreduce/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,14 @@ private void writeConf(Configuration conf, Path jobFile)
419419
}
420420
}
421421

422-
423-
424-
@SuppressWarnings("unchecked")
425422
private void printTokens(JobID jobId,
426423
Credentials credentials) throws IOException {
427424
if (LOG.isDebugEnabled()) {
428425
LOG.debug("Printing tokens for job: " + jobId);
429426
for(Token<?> token: credentials.getAllTokens()) {
430427
if (token.getKind().toString().equals("HDFS_DELEGATION_TOKEN")) {
431428
LOG.debug("Submitting with " +
432-
DFSClient.stringifyToken((Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier>) token));
429+
org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(token));
433430
}
434431
}
435432
}

0 commit comments

Comments
 (0)