From f5690f57ed4dc702f4aa7a24c0f6253894a301a7 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Tue, 19 Jul 2011 14:43:45 +0000 Subject: [PATCH] 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 --- mapreduce/CHANGES.txt | 3 +++ .../src/java/org/apache/hadoop/mapreduce/JobSubmitter.java | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mapreduce/CHANGES.txt b/mapreduce/CHANGES.txt index 440b21ece0..c20b6f0fbf 100644 --- a/mapreduce/CHANGES.txt +++ b/mapreduce/CHANGES.txt @@ -341,6 +341,9 @@ Trunk (unreleased changes) MAPREDUCE-2670. Fixing spelling mistake in FairSchedulerServlet.java. (eli) + MAPREDUCE-2710. Update JobSubmitter.printTokens(..) for HDFS-2161. + (szetszwo) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/mapreduce/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java b/mapreduce/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java index 751d528868..2c268f176f 100644 --- a/mapreduce/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java +++ b/mapreduce/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java @@ -419,9 +419,6 @@ class JobSubmitter { } } - - - @SuppressWarnings("unchecked") private void printTokens(JobID jobId, Credentials credentials) throws IOException { if (LOG.isDebugEnabled()) { @@ -429,7 +426,7 @@ class JobSubmitter { for(Token token: credentials.getAllTokens()) { if (token.getKind().toString().equals("HDFS_DELEGATION_TOKEN")) { LOG.debug("Submitting with " + - DFSClient.stringifyToken((Token) token)); + org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(token)); } } }