Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7913

Secure Rest server should login before getting an instance of Rest servlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.6, 0.95.0
    • 0.94.6, 0.95.0
    • REST, security
    • None
    • Reviewed

    Description

      Fails with exception

      avax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
              at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:194)
              at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.saslConnect(HBaseSaslRpcClient.java:139)
              at org.apache.hadoop.hbase.ipc.SecureClient$SecureConnection.setupSaslConnection(SecureClient.java:194)
              at org.apache.hadoop.hbase.ipc.SecureClient$SecureConnection.access$500(SecureClient.java:92)
              at org.apache.hadoop.hbase.ipc.SecureClient$SecureConnection$2.run(SecureClient.java:302)
              at org.apache.hadoop.hbase.ipc.SecureClient$SecureConnection$2.run(SecureClient.java:299)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:396)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1178)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37)
              at org.apache.hadoop.hbase.security.User.call(User.java:590)
              at org.apache.hadoop.hbase.security.User.access$700(User.java:51)
              at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:444)
              at org.apache.hadoop.hbase.ipc.SecureClient$SecureConnection.setupIOstreams(SecureClient.java:298)
              at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1124)
              at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:974)
              at org.apache.hadoop.hbase.ipc.SecureRpcEngine$Invoker.invoke(SecureRpcEngine.java:104)
              at $Proxy5.getProtocolVersion(Unknown Source)
              at org.apache.hadoop.hbase.ipc.SecureRpcEngine.getProxy(SecureRpcEngine.java:146)
              at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:711)
              at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:116)
              at org.apache.hadoop.hbase.rest.RESTServlet.<init>(RESTServlet.java:74)
              at org.apache.hadoop.hbase.rest.RESTServlet.getInstance(RESTServlet.java:57)
              at org.apache.hadoop.hbase.rest.Main.main(Main.java:81)
      Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
              at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:130)
              at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:106)
              at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:172)
              at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:209)
              at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:195)
              at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:162)
              at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:175)
      

      Attachments

        1. HBASE-7913.branch-0.94.patch
          2 kB
          Arpit Gupta
        2. HBASE-7913.patch
          2 kB
          Arpit Gupta

        Activity

          People

            arpitgupta Arpit Gupta
            arpitgupta Arpit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: