hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9645) KerberosAuthenticator NPEs on connect error
Date Fri, 14 Jun 2013 13:47:25 GMT
Daryn Sharp created HADOOP-9645:
-----------------------------------

             Summary: KerberosAuthenticator NPEs on connect error
                 Key: HADOOP-9645
                 URL: https://issues.apache.org/jira/browse/HADOOP-9645
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.0.5-alpha
            Reporter: Daryn Sharp
            Priority: Critical


A NPE occurs if there's a kerberos error during initial connect.  In this case, the NN was
using a HTTP service principal with a stale kvno.  It causes webhdfs to fail in a non-user
friendly manner by masking the real error from the user.

{noformat}
java.lang.RuntimeException: java.lang.NullPointerException
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)
        at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2713)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:477)
        at
org.apache.hadoop.security.authentication.client.KerberosAuthenticator.isNegotiate(KerberosAuthenticator.java:164)
        at
org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:140)
        at
org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:217)
        at
org.apache.hadoop.hdfs.web.WebHdfsFileSystem.openHttpUrlConnection(WebHdfsFileSystem.java:364)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message