You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2020/02/07 23:06:00 UTC

[jira] [Commented] (HBASE-23765) Use 127.0.0.1 instead of localhost when setting up Kerberos-related tests

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

Nick Dimiduk commented on HBASE-23765:
--------------------------------------

Okay! I couldn't repro this at the beginning of the week and was resigned to giving up. By trying once more, now it's failing again.

{noformat}
vagrant@bionic:~/repos/hbase$ JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mvn clean install -DskipTests
...
[INFO] ------------------------------------------------------------------------                       
[INFO] BUILD SUCCESS                                                                                  
[INFO] ------------------------------------------------------------------------                       
vagrant@bionic:~/repos/hbase$ JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mvn -pl hbase-rest test -Dtest=TestSecureRESTServer
...
[INFO] Running org.apache.hadoop.hbase.rest.TestSecureRESTServer
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 34.795 s <<< FAILURE! - in org.apache.hadoop.hbase.rest.TestSecureRESTServer
[ERROR] org.apache.hadoop.hbase.rest.TestSecureRESTServer  Time elapsed: 34.787 s  <<< ERROR!
java.io.IOException: Failed on local exception: java.io.IOException: Couldn't setup connection for hbase/localhost@EXAMPLE.COM to localhost/127.0.0.1:33483; Host Details : local host is: "bionic/10.0.2.15
"; destination host is: "localhost":33483; 
        at org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:193)
Caused by: java.io.IOException: Couldn't setup connection for hbase/localhost@EXAMPLE.COM to localhost/127.0.0.1:33483
        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} 

> Use 127.0.0.1 instead of localhost when setting up Kerberos-related tests
> -------------------------------------------------------------------------
>
>                 Key: HBASE-23765
>                 URL: https://issues.apache.org/jira/browse/HBASE-23765
>             Project: HBase
>          Issue Type: Task
>          Components: test
>            Reporter: Josh Elser
>            Priority: Minor
>
> [~ndimiduk] gave an ask over on HBASE-23760 to change some of the Hadoop-level configuration properties around secure cluster setup from localhost to 127.0.0.1. He and [~bharathv] have been chasing some issues with ZooKeeper and not having a resolution of localhost to 127.0.0.1.
> Before I start making a change, how sure are we that this is an issue? Assuming that it's the nightlies that we see these on, how about we make a change to increase the krb5 and spnego debugging to see if we aren't resolving names properly?
> There might be a debug property for DNS lookups in Java too.... maybe?



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