You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by bo...@apache.org on 2010/05/22 00:29:07 UTC
svn commit: r947204 - in /hadoop/hdfs/trunk: CHANGES.txt
src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
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);