You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "John Zhuge (JIRA)" <ji...@apache.org> on 2016/12/16 05:10:59 UTC

[jira] [Resolved] (HDFS-11255) TestHttpFSWithKerberos failed

     [ https://issues.apache.org/jira/browse/HDFS-11255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Zhuge resolved HDFS-11255.
-------------------------------
    Resolution: Invalid

The test is excluded in pom.xml.

> TestHttpFSWithKerberos failed
> -----------------------------
>
>                 Key: HDFS-11255
>                 URL: https://issues.apache.org/jira/browse/HDFS-11255
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: httpfs
>    Affects Versions: 3.0.0-alpha2
>         Environment: {noformat}
> CentOS Linux release 7.2.1511 (Core) 
> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
> Maven home: /usr/share/maven
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.10.0-327.36.3.el7.x86_64", arch: "amd64", family: "unix"
> cee0c46 HDFS-11188. Change min supported DN and NN versions back to 2.x. Contributed by Andrew Wang.
> {noformat}
>            Reporter: John Zhuge
>
> {noformat}
> $ mvn test -P\!shelltest -Dtest=TestHttpFSWithKerberos
> ...
> Running org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos
> Tests run: 6, Failures: 1, Errors: 5, Skipped: 0, Time elapsed: 7.356 sec <<< FAILURE! - in org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos
> testDelegationTokenWithWebhdfsFileSystem(org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos)  Time elapsed: 4.73 sec  <<< ERROR!
> org.apache.hadoop.security.KerberosAuthException: Login failure for user: client from keytab /Users/tucu/tucu.keytab javax.security.auth.login.LoginException: Unable to obtain password from user
>         at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:897)
>         at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
>         at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
>         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
>         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
>         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
>         at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:1092)
>         at org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos.testDelegationTokenWithinDoAs(TestHttpFSWithKerberos.java:239)
>         at org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos.testDelegationTokenWithWebhdfsFileSystem(TestHttpFSWithKerberos.java:270)
> testInvalidadHttpFSAccess(org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos)  Time elapsed: 1.581 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<503> but was:<401>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:555)
>         at org.junit.Assert.assertEquals(Assert.java:542)
>         at org.apache.hadoop.fs.http.server.TestHttpFSWithKerberos.testInvalidadHttpFSAccess(TestHttpFSWithKerberos.java:144)
> ...
> Failed tests: 
>   TestHttpFSWithKerberos.testInvalidadHttpFSAccess:144 expected:<503> but was:<401>
> Tests in error: 
>   TestHttpFSWithKerberos.testDelegationTokenWithWebhdfsFileSystem:270->testDelegationTokenWithinDoAs:239 » KerberosAuth
>   TestHttpFSWithKerberos.testValidHttpFSAccess:120 » Login Unable to obtain pass...
>   TestHttpFSWithKerberos.testDelegationTokenWithHttpFSFileSystem:262->testDelegationTokenWithinDoAs:239 » KerberosAuth
>   TestHttpFSWithKerberos.testDelegationTokenWithHttpFSFileSystemProxyUser:279->testDelegationTokenWithinDoAs:239 » KerberosAuth
>   TestHttpFSWithKerberos.testDelegationTokenHttpFSAccess:155 » Login Unable to o...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org