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

KerberosAuthenticator NPEs on connect error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.0.5-alpha
    • None
    • fs
    • None

    Description

      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.

      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: