[ https://issues.apache.org/jira/browse/HADOOP-9645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15210534#comment-15210534 ]
Steve Loughran commented on HADOOP-9645: ---------------------------------------- It's a duplicate of HADOOP-9363; HDFS-3980 is a symptom of the same problem. > 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 was sent by Atlassian JIRA (v6.3.4#6332)