hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neeraj Vaidya <neeraj.vai...@yahoo.co.in>
Subject Re: Apache Hadoop 2.7 Windows 7 x64 - Failing Tests TestKerberosAuthenticator
Date Tue, 16 Jun 2015 07:11:36 GMT
Hi All,
I just cleared the kerberos tickets cached on my machine using "klist purge", before starting
the build.
This solved the issue for me. Hope that helps anyone else facing a similar issue.

Regards,
Neeraj

--------------------------------------------
On Tue, 16/6/15, Neeraj Vaidya <neeraj.vaidya@yahoo.co.in> wrote:

 Subject: Re: Apache Hadoop 2.7 Windows 7 x64 - Failing Tests TestKerberosAuthenticator
 To: "common-dev@hadoop.apache.org" <common-dev@hadoop.apache.org>
 Date: Tuesday, 16 June, 2015, 6:43 AM
 
 Hi,
 Can
 you please help me with my issue described below ? I am
 resenting this email as I probably sent the first one before
 my subscription to this list was confirmed. Sorry about
 that.
 
 Regards
 Neeraj
 
 On
 15/06/2015, at 4:05 PM, Neeraj Vaidya <neeraj.vaidya@yahoo.co.in>
 wrote:
 
 > Hi,
 > 
 > I have been trying
 to build Hadoop 2.7 on my Windows 7 64-bit laptop. I have
 installed all the pre-requisites mentioned in the
 BUILDING.txt file.
 > 
 > However, when my build reaches the tests
 for hadoop-auth module, it keeps failing with errors related
 to timeout in the Kerberos Authentication tests. See SNIPPET
 below. The surefire-report for this test is attached
 herewith.
 > 
 > Can you
 please let me know if/where I am going wrong ? I have used
 the following command to build "mvn package -Pdist
 -Pdocs -Psrc -Dtar"
 > 
 >
 ============================================SNIPPET OF ERROR
 PRINTED ON
 SCREEN================================================
 > 
 > Running
 org.apache.hadoop.security.authentication.client.TestAuthenticatedURL
 > Tests run: 6, Failures: 0, Errors: 0,
 Skipped: 0, Time elapsed: 0.361 sec - in
 org.apache.hadoop.security.authentication.client.TestAuthenticatedURL
 > Java HotSpot(TM) 64-Bit Server VM warning:
 ignoring option MaxPermSize=768m; support was removed in
 8.0
 > Running
 org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator
 > Tests run: 14, Failures: 0, Errors: 10,
 Skipped: 0, Time elapsed: 701.875 sec <<< FAILURE!
 - in
 org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator
 > 
 >
 testNotAuthenticated[0](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator) 
 Time elapsed: 70.586 sec  <<< ERROR!
 > java.lang.Exception: test timed out after
 60000 milliseconds
 >        at
 sun.security.krb5.Credentials.acquireDefaultNativeCreds(Native
 Method)
 >        at
 sun.security.krb5.Credentials.acquireDefaultCreds(Credentials.java:427)
 >        at
 sun.security.krb5.Credentials.acquireTGTFromCache(Credentials.java:295)
 >        at
 com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:665)
 >        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:497)
 >        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
 sun.security.jgss.GSSUtil.login(GSSUtil.java:255)
 >        at
 sun.security.jgss.krb5.Krb5Util.getTicket(Krb5Util.java:158)
 >        at
 sun.security.jgss.krb5.Krb5InitCredential$1.run(Krb5InitCredential.java:335)
 >        at
 sun.security.jgss.krb5.Krb5InitCredential$1.run(Krb5InitCredential.java:331)
 >        at
 java.security.AccessController.doPrivileged(Native
 Method)
 >        at
 sun.security.jgss.krb5.Krb5InitCredential.getTgt(Krb5InitCredential.java:330)
 >        at
 sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:145)
 >        at
 sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
 >        at
 sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
 >        at
 sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
 >        at
 sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
 >        at
 sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
 >        at
 sun.security.jgss.spnego.SpNegoContext.GSS_initSecContext(SpNegoContext.java:875)
 >        at
 sun.security.jgss.spnego.SpNegoContext.initSecContext(SpNegoContext.java:317)
 >        at
 sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:248)
 >        at
 sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
 >        at
 sun.net.www.protocol.http.spnego.NegotiatorImpl.init(NegotiatorImpl.java:108)
 >        at
 sun.net.www.protocol.http.spnego.NegotiatorImpl.<init>(NegotiatorImpl.java:117)
 >        at
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 >        at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 >        at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 >        at
 java.lang.reflect.Constructor.newInstance(Constructor.java:422)
 >        at
 sun.net.www.protocol.http.Negotiator.getNegotiator(Negotiator.java:63)
 >        at
 sun.net.www.protocol.http.NegotiateAuthentication.isSupportedImpl(NegotiateAuthentication.java:130)
 >        at
 sun.net.www.protocol.http.NegotiateAuthentication.isSupported(NegotiateAuthentication.java:102)
 >        at
 sun.net.www.protocol.http.AuthenticationHeader.parse(AuthenticationHeader.java:180)
 >        at
 sun.net.www.protocol.http.AuthenticationHeader.<init>(AuthenticationHeader.java:126)
 >        at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1659)
 >        at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
 >        at
 java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
 >        at
 org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testNotAuthenticated(TestKerberosAuthenticator.java:106)
 > 
 >
 testAuthenticationHttpClient[0](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator) 
 Time elapsed: 67.738 sec  <<< ERROR!
 > java.lang.Exception: test timed out after
 60000 milliseconds
 >        at
 sun.security.krb5.Credentials.acquireDefaultNativeCreds(Native
 Method)
 >        at
 sun.security.krb5.Credentials.acquireDefaultCreds(Credentials.java:427)
 >        at
 sun.security.krb5.Credentials.acquireTGTFromCache(Credentials.java:295)
 >        at
 com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:665)
 >        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:497)
 >        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.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:97)
 >        at
 org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:115)
 >        at
 org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testAuthenticationHttpClient(TestKerberosAuthenticator.java:149)
 > 
 >
 ============================================ SNIPPET OF
 ERROR PRINTED ON
 SCREEN================================================
 >
 <org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator-output.txt>

Mime
View raw message