hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acmur...@apache.org
Subject svn commit: r1499902 - in /hadoop/common/branches/branch-1: CHANGES.txt src/mapred/org/apache/hadoop/mapred/JobTracker.java
Date Fri, 05 Jul 2013 03:17:53 GMT
Author: acmurthy
Date: Fri Jul  5 03:17:51 2013
New Revision: 1499902

URL: http://svn.apache.org/r1499902
Log:
MAPREDUCE-5375. Use short name for renewing delegation tokens. Contributed by Venkat Ranganathan.

Modified:
    hadoop/common/branches/branch-1/CHANGES.txt
    hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/JobTracker.java

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1499902&r1=1499901&r2=1499902&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Fri Jul  5 03:17:51 2013
@@ -117,6 +117,9 @@ Release 1.2.1 - Unreleased 
     MAPREDUCE-5364. Deadlock between RenewalTimerTask methods cancel() and run(). 
     (kkambatl via tucu)
 
+    MAPREDUCE-5375. Use short name for renewing delegation tokens. (Venkat
+    Ranganathan via acmurthy)
+
 Release 1.2.0 - 2013.05.05
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/JobTracker.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/JobTracker.java?rev=1499902&r1=1499901&r2=1499902&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/JobTracker.java (original)
+++ hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/JobTracker.java Fri
Jul  5 03:17:51 2013
@@ -3874,7 +3874,7 @@ public class JobTracker implements MRCon
       throw new IOException(
           "Delegation Token can be issued only with kerberos authentication");
     }
-    String user = UserGroupInformation.getCurrentUser().getUserName();
+    String user = UserGroupInformation.getCurrentUser().getShortUserName();
     return secretManager.renewToken(token, user);
   }  
 



Mime
View raw message