hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lantao Jin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12236) FsckServlet can not create SaslRpcClient with auth KERBEROS_SSL
Date Tue, 01 Aug 2017 09:36:00 GMT
Lantao Jin created HDFS-12236:

             Summary: FsckServlet can not create SaslRpcClient with auth KERBEROS_SSL
                 Key: HDFS-12236
                 URL: https://issues.apache.org/jira/browse/HDFS-12236
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: security
    Affects Versions: 3.0.0-alpha3, 2.8.1, 2.7.3
            Reporter: Lantao Jin

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

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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message