[ 
https://issues.apache.org/jira/browse/HBASE-23769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026401#comment-17026401
 ] 

Josh Elser commented on HBASE-23769:
------------------------------------

Set on -Dsun.security.krb5.debug=true (and maybe 
-Dsun.security.spnego.debug=true can't tell if this is spnego yet) and you 
should get a clear error message about what the client was asking for from the 
kdc. I've seen this before with VMs where localhost resolution is wonky as a 
"feature" so that things resolve from the host OS. Something like localhost 
actually resolves to something other than 127.0.0.1 but then the IP that was 
resolved has a reverse lookup into the fqdn.

In short, double check /etc/hosts and make sure localhost is sane.

> TestSecureRESTServer fails due to hostname mismatch
> ---------------------------------------------------
>
>                 Key: HBASE-23769
>                 URL: https://issues.apache.org/jira/browse/HBASE-23769
>             Project: HBase
>          Issue Type: Test
>          Components: REST, test
>    Affects Versions: 3.0.0, 2.3.0
>            Reporter: Nick Dimiduk
>            Priority: Minor
>
> Above test fails reliably in a simpleVagrant/VirtualBox Ubuntu vm.
> {noformat}
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 s <<< 
> FAILURE! - in org.apache.hadoop.hbase.rest.TestSecureRESTServer
> org.apache.hadoop.hbase.rest.TestSecureRESTServer  Time elapsed: 0.001 s  <<< 
> ERROR!
> java.io.IOException: Failed on local exception: java.io.IOException: Couldn't 
> setup connection for hbase/[email protected] to 
> localhost/127.0.0.1:45719; Host Details : local host is: "bionic/10.0.2.15"; 
> destination host is: "localhost":45719;
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> Caused by: java.io.IOException: Couldn't setup connection for 
> hbase/[email protected] to localhost/127.0.0.1:45719
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> Caused by: javax.security.sasl.SaslException: GSS initiate failed
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> Caused by: org.ietf.jgss.GSSException: No valid credentials provided 
> (Mechanism level: Message stream modified (41) - Message stream modified)
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> Caused by: sun.security.krb5.KrbException: Message stream modified (41) - 
> Message stream modified
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> Caused by: sun.security.krb5.Asn1Exception: Identifier doesn't match expected 
> value (906)
>         at 
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to