You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 04:49:30 UTC

svn commit: r1077183 - /hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java

Author: omalley
Date: Fri Mar  4 03:49:29 2011
New Revision: 1077183

URL: http://svn.apache.org/viewvc?rev=1077183&view=rev
Log:
commit e9f14746025fe51c5d2c9e49e9eb00e709f5aa26
Author: Owen O'Malley <om...@apache.org>
Date:   Fri Feb 19 15:55:11 2010 -0800

    Fix MapReduce delegation tokens to use the JobClient's configuration rather
    than the default one.

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java?rev=1077183&r1=1077182&r2=1077183&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobClient.java Fri Mar  4 03:49:29 2011
@@ -1790,7 +1790,7 @@ public class JobClient extends Configure
     getDelegationToken(Text renewer) throws IOException, InterruptedException {
     Token<DelegationTokenIdentifier> result =
       jobSubmitClient.getDelegationToken(renewer);
-    InetSocketAddress addr = JobTracker.getAddress(new Configuration());
+    InetSocketAddress addr = JobTracker.getAddress(getConf());
     StringBuilder service = new StringBuilder();
     service.append(NetUtils.normalizeHostName(addr.getAddress().
                                               getHostAddress()));