Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14708

FsckServlet can not create SaslRpcClient with auth KERBEROS_SSL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.3, 2.8.1, 3.0.0-alpha3
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      None

      Description

      FSCK started by xx (auth:KERBEROS_SSL) failed with exception msg "fsck encountered internal errors!"

      FSCK use FSCKServlet to submit RPC to NameNode, it use KERBEROS_SSL as its AuthenticationMethod in JspHelper.java

        /** Same as getUGI(context, request, conf, KERBEROS_SSL, true). */
        public static UserGroupInformation getUGI(ServletContext context,
            HttpServletRequest request, Configuration conf) throws IOException {
          return getUGI(context, request, conf, AuthenticationMethod.KERBEROS_SSL, true);
        }
      

      But when setup SaslConnection with server, KERBEROS_SSL will failed to create SaslClient instance. See SaslRpcClient.java

      private SaslClient createSaslClient(SaslAuth authType)
            throws SaslException, IOException {
            ....
            case KERBEROS: {
              if (ugi.getRealAuthenticationMethod().getAuthMethod() !=
                  AuthMethod.KERBEROS) {
                return null; // client isn't using kerberos
              }
      

        Attachments

        1. FSCK.log
          12 kB
          Lantao Jin
        2. FSCK-2.log
          16 kB
          Lantao Jin
        3. HADOOP-14708.001.patch
          1 kB
          Lantao Jin

          Issue Links

            Activity

              People

              • Assignee:
                cltlfcjin Lantao Jin
                Reporter:
                cltlfcjin Lantao Jin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: