hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bor...@apache.org
Subject svn commit: r947204 - in /hadoop/hdfs/trunk: CHANGES.txt src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Date Fri, 21 May 2010 22:29:07 GMT
Author: boryas
Date: Fri May 21 22:29:07 2010
New Revision: 947204

URL: http://svn.apache.org/viewvc?rev=947204&view=rev
Log:
HDFS-1044. Cannot submit mapreduce job from secure client to unsecure sever

Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=947204&r1=947203&r2=947204&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Fri May 21 22:29:07 2010
@@ -20,7 +20,10 @@ Trunk (unreleased changes)
 
   BUG FIXES
 
-    HDFS 1021. specify correct server principal for RefreshAuthorizationPolicyProtocol 
+    HDFS-1044. Cannot submit mapreduce job from secure client to 
+    unsecure sever (boryas)
+
+    HDFS-1021. specify correct server principal for RefreshAuthorizationPolicyProtocol 
     and RefreshUserToGroupMappingsProtocol protocols in DFSAdmin (for HADOOP-6612) (boryas)
 
     HDFS-970. fsync fsimage to disk before closing fsimage file.

Modified: hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java?rev=947204&r1=947203&r2=947204&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java (original)
+++ hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java Fri
May 21 22:29:07 2010
@@ -4504,6 +4504,12 @@ public class FSNamesystem implements FSC
       throw new IOException(
           "Delegation Token can be issued only with kerberos or web authentication");
     }
+    
+    if(dtSecretManager == null || !dtSecretManager.isRunning()) {
+      LOG.warn("trying to get DT with no secret manager running");
+      return null;
+    }
+
     UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
     String user = ugi.getUserName();
     Text owner = new Text(user);



Mime
View raw message