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
This commit is contained in:
Tsz-wo Sze 2011-07-19 14:43:45 +00:00
parent 710e5a960e
commit f5690f57ed
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier>) token));
org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(token));
}
}
}