Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3652CC24C for ; Sun, 16 Jun 2013 15:23:42 +0000 (UTC) Received: (qmail 88752 invoked by uid 500); 16 Jun 2013 15:23:37 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 88486 invoked by uid 500); 16 Jun 2013 15:23:37 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 88478 invoked by uid 99); 16 Jun 2013 15:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jun 2013 15:23:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [129.187.255.137] (HELO postout1.mail.lrz.de) (129.187.255.137) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jun 2013 15:23:31 +0000 Received: from lxmhs51.srv.lrz.de (localhost [127.0.0.1]) by postout1.mail.lrz.de (Postfix) with ESMTP id 3bYK7c63bXzyRQ for ; Sun, 16 Jun 2013 17:23:08 +0200 (CEST) X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs51.srv.lrz.de Received: from postout1.mail.lrz.de ([127.0.0.1]) by lxmhs51.srv.lrz.de (lxmhs51.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id keYFIIWJL1YN for ; Sun, 16 Jun 2013 17:23:08 +0200 (CEST) Received: from BADWLRZ-SWHBT2.ads.mwn.de (BADWLRZ-SWHBT2.ads.mwn.de [IPv6:2001:4ca0:0:108::126]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "BADWLRZ-SWHBT2", Issuer "BADWLRZ-SWHBT2" (not verified)) by postout1.mail.lrz.de (Postfix) with ESMTPS id 3bYK7c34xQzyQh for ; Sun, 16 Jun 2013 17:23:08 +0200 (CEST) Received: from BADWLRZ-SWMBX11.ads.mwn.de ([fe80::6de5:ff8b:1900:b1a1]) by BADWLRZ-SWHBT2.ads.mwn.de ([fe80::5951:9dc3:7b2b:14ba%13]) with mapi id 14.03.0123.003; Sun, 16 Jun 2013 17:23:08 +0200 From: "Lanati, Matteo" To: "" Subject: webhdfs kerberos checksum failed Thread-Topic: webhdfs kerberos checksum failed Thread-Index: Ac5qo6DUcJvBNBhnRHi8ImvFmVkBPw== Date: Sun, 16 Jun 2013 15:23:06 +0000 Message-ID: <31270DDF18CC924782A594673481B9154BD56450@BADWLRZ-SWMBX11.ads.mwn.de> Accept-Language: en-GB, it-IT, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4ca0:0:f031::8] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm trying to setup webhdfs on Hadoop 1.20 with security. I added the following to hdfs-site.xml dfs.webhdfs.enabled true dfs.web.authentication.kerberos.principal HTTP/master.hadoop.local@HADOOP.LRZ.DE dfs.web.authentication.kerberos.keytab /home/hadoop-user/hadoop/conf/keytabs/http.keytab The keytab is valid and I can get credentials if I try to use it. When I test WebHDFS with curl curl --negotiate -u:anyUser -b ~/cookies.txt -c ~/cookies.txt http://maste= r.hadoop.local:50070/webhdfs/v1/tmp?op=3DLISTSTATUS I see the following error in the logfile of the namenode 2013-06-16 17:17:00,170 WARN org.apache.hadoop.security.authentication.serv= er.AuthenticationFilter: Authentication exception: GSSException: Failure un= specified at GSS-API level (Mechanism level: Checksum failed) org.apache.hadoop.security.authentication.client.AuthenticationException: G= SSException: Failure unspecified at GSS-API level (Mechanism level: Checksu= m failed) at org.apache.hadoop.security.authentication.server.KerberosAuthent= icationHandler.authenticate(KerberosAuthenticationHandler.java:301) at org.apache.hadoop.security.authentication.server.AuthenticationF= ilter.doFilter(AuthenticationFilter.java:348) at org.apache.hadoop.hdfs.web.AuthFilter.doFilter(AuthFilter.java:8= 5) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Se= rvletHandler.java:1212) at org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(Ht= tpServer.java:914) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Se= rvletHandler.java:1212) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.j= ava:399) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandle= r.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.j= ava:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.j= ava:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java= :450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(Contex= tHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.j= ava:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.ja= va:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(H= ttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoi= nt.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadP= ool.java:582) Caused by: GSSException: Failure unspecified at GSS-API level (Mechanism le= vel: Checksum failed) at sun.security.jgss.krb5.Krb5Context.acceptSecContext(Unknown Sour= ce) at sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source= ) at sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source= ) at org.apache.hadoop.security.authentication.server.KerberosAuthent= icationHandler$2.run(KerberosAuthenticationHandler.java:271) at org.apache.hadoop.security.authentication.server.KerberosAuthent= icationHandler$2.run(KerberosAuthenticationHandler.java:263) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Unknown Source) at org.apache.hadoop.security.authentication.server.KerberosAuthent= icationHandler.authenticate(KerberosAuthenticationHandler.java:263) ... 20 more Caused by: KrbException: Checksum failed at sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType.decrypt= (Unknown Source) at sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType.decrypt= (Unknown Source) at sun.security.krb5.EncryptedData.decrypt(Unknown Source) at sun.security.krb5.KrbApReq.authenticate(Unknown Source) at sun.security.krb5.KrbApReq.(Unknown Source) at sun.security.jgss.krb5.InitSecContextToken.(Unknown Source= ) ... 28 more Caused by: java.security.GeneralSecurityException: Checksum failed at sun.security.krb5.internal.crypto.dk.AesDkCrypto.decryptCTS(Unkn= own Source) at sun.security.krb5.internal.crypto.dk.AesDkCrypto.decrypt(Unknown= Source) at sun.security.krb5.internal.crypto.Aes256.decrypt(Unknown Source= ) ... 34 more I'm using Java 7 with JCE extensions. I also tried to force a different enc= ryption algorithm for Kerberos (i.e. arcfour-hmac instead of aes256-cts-hma= c-sha1-96) but the error message is the same (of course it refers to arcfou= r-hmac). Does anyone have an idea of what could be the root of this? Thanks, Matteo Matteo Lanati Distributed Resources Group Leibniz-Rechenzentrum (LRZ) Boltzmannstrasse 1 85748 Garching b. M=FCnchen (Germany) Phone: +49 89 35831 8724=