فهرست منبع

HDFS-3727. When using SPNEGO, NN should not try to log in using KSSL principal. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1365892 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 13 سال پیش
والد
کامیت
f39a5a2524
2فایلهای تغییر یافته به همراه4 افزوده شده و 7 حذف شده
  1. 3 0
      CHANGES.txt
  2. 1 7
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java

+ 3 - 0
CHANGES.txt

@@ -123,6 +123,9 @@ Release 1.2.0 - unreleased
     HDFS-2751. Backport: Datanode may incorrectly drop OS cache behind reads
     HDFS-2751. Backport: Datanode may incorrectly drop OS cache behind reads
     even for short reads.  (Brandon Li via szetszwo)
     even for short reads.  (Brandon Li via szetszwo)
 
 
+    HDFS-3727. When using SPNEGO, NN should not try to log in using KSSL
+    principal. (atm)
+
 Release 1.1.0 - unreleased
 Release 1.1.0 - unreleased
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 7
src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java

@@ -122,7 +122,7 @@ public class GetImageServlet extends HttpServlet {
           return UserGroupInformation
           return UserGroupInformation
           .loginUserFromKeytabAndReturnUGI(
           .loginUserFromKeytabAndReturnUGI(
                   SecurityUtil.getServerPrincipal(conf
                   SecurityUtil.getServerPrincipal(conf
-                      .get(DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY), NameNode
+                      .get(DFS_NAMENODE_USER_NAME_KEY), NameNode
                       .getAddress(conf).getHostName()),
                       .getAddress(conf).getHostName()),
               conf.get(DFSConfigKeys.DFS_NAMENODE_KEYTAB_FILE_KEY));
               conf.get(DFSConfigKeys.DFS_NAMENODE_KEYTAB_FILE_KEY));
         }
         }
@@ -161,14 +161,8 @@ public class GetImageServlet extends HttpServlet {
     }
     }
     
     
     String[] validRequestors = {
     String[] validRequestors = {
-        SecurityUtil.getServerPrincipal(conf
-            .get(DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY), NameNode.getAddress(
-            conf).getHostName()),
         SecurityUtil.getServerPrincipal(conf.get(DFS_NAMENODE_USER_NAME_KEY),
         SecurityUtil.getServerPrincipal(conf.get(DFS_NAMENODE_USER_NAME_KEY),
             NameNode.getAddress(conf).getHostName()),
             NameNode.getAddress(conf).getHostName()),
-        SecurityUtil.getServerPrincipal(conf
-            .get(DFS_SECONDARY_NAMENODE_KRB_HTTPS_USER_NAME_KEY),
-            SecondaryNameNode.getHttpAddress(conf).getHostName()),
         SecurityUtil.getServerPrincipal(conf
         SecurityUtil.getServerPrincipal(conf
             .get(DFS_SECONDARY_NAMENODE_USER_NAME_KEY), SecondaryNameNode
             .get(DFS_SECONDARY_NAMENODE_USER_NAME_KEY), SecondaryNameNode
             .getHttpAddress(conf).getHostName()) };
             .getHttpAddress(conf).getHostName()) };