Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A4C19DB8 for ; Mon, 21 May 2012 01:27:41 +0000 (UTC) Received: (qmail 85530 invoked by uid 500); 21 May 2012 01:27:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 85486 invoked by uid 500); 21 May 2012 01:27:39 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 85450 invoked by uid 99); 21 May 2012 01:27:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 01:27:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mlortiz@uci.cu designates 200.55.140.180 as permitted sender) Received: from [200.55.140.180] (HELO mx3.uci.cu) (200.55.140.180) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 May 2012 01:27:32 +0000 Received: (qmail 19003 invoked by uid 507); 21 May 2012 01:27:03 -0000 Received: from 10.0.0.188 by ns3.uci.cu (envelope-from , uid 501) with qmail-scanner-2.01st (avp: 5.0.2.0. spamassassin: 3.0.6. perlscan: 2.01st. Clear:RC:1(10.0.0.188):. Processed in 0.831701 secs); 21 May 2012 01:27:03 -0000 Received: from unknown (HELO ucimail5.uci.cu) (10.0.0.188) by 0 with SMTP; 21 May 2012 01:27:02 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail5.uci.cu (Postfix) with ESMTP id 0B0E722C001 for ; Sun, 20 May 2012 21:27:02 -0400 (CDT) X-Virus-Scanned: amavisd-new at uci.cu Received: from ucimail5.uci.cu ([127.0.0.1]) by localhost (ucimail5.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id idHSyctDTN8K for ; Sun, 20 May 2012 21:26:59 -0400 (CDT) Received: by ucimail5.uci.cu (Postfix, from userid 101) id AFE6B324001; Sun, 20 May 2012 21:26:59 -0400 (CDT) Received: from [10.8.46.124] (unknown [10.8.46.124]) (Authenticated sender: mlortiz@uci.cu) by ucimail5.uci.cu (Postfix) with ESMTPSA id 8D11422C001; Sun, 20 May 2012 21:26:59 -0400 (CDT) Message-ID: <4FB999D9.4070607@uci.cu> Date: Sun, 20 May 2012 21:26:49 -0400 From: Marcos Ortiz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@hbase.apache.org CC: Ben Cuthbert Subject: Re: failed to login References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------070605030707050502060008" --------------070605030707050502060008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit It's seems that the problems is with the initialization of the values for Kerberos, with the class KerberosName. Where you have the key file and principal name for Kerberos. In HBase, there are four parameters for this: - hbase.master.keytab.file: Full path to the kerberos keytab file to use for logging in the configured HMaster server principal. - hbase.master.kerberos.principal: Ex. "hbase/_HOST@EXAMPLE.COM". The kerberos principal name that should be used to run the HMaster process. The principal name should be in the form: user/hostname@DOMAIN. If "_HOST" is used as the hostname portion, it will be replaced with the actual hostname of the running instance. - hbase.regionserver.keytab.file: Full path to the kerberos keytab file to use for logging in the configured HRegionServer server principal. - hbase.regionserver.kerberos.principal: Ex. "hbase/_HOST@EXAMPLE.COM". The kerberos principal name that should be used to run the HRegionServer process. The principal name should be in the form: user/hostname@DOMAIN. If "_HOST" is used as the hostname portion, it will be replaced with the actual hostname of the running instance. An entry for this principal must exist in the file specified in hbase.regionserver.keytab.file Looking on the source of this class (KerberosName), it throws a IOException by several reason: - The files and these parameters are empty values - There is not matching rule in the Kerberos realm server - There is not shortname for the Kerberos server, etc Look at the source and see what it's missing. Regards On 05/20/2012 03:45 PM, Ben Cuthbert wrote: > All I just upgraded hbase and hadoop to hbase(0.92.1) and hadoop (1.0.3) > > hbase and hadoop look to come up correctly. but when I start my application I am getting the error below. > > I have copied the hbase-security settings into the classpath. > > core-site.xml is set to > > configuration> > > > hadoop.tmp.dir > ${celer.hadoop.data.dir} > A base for other temporary directories. > > > > fs.default.name > hdfs://${celer.hadoop.master.address}:${celer.hadoop.bind.port} > The name of the default file system. A URI whose > scheme and authority determine the FileSystem implementation. The > uri's scheme determines the config property (fs.SCHEME.impl) naming > the FileSystem implementation class. The uri's authority is used to > determine the host, port, etc. for a filesystem. > > > > > > hadoop.security.authorization > false > > > > > hadoop.security.authentication > simple > > > > > hadoop.security.token.service.use_ip > true > > > > > > > 2012-05-20 20:43:20,914 [main] INFO org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation - getMaster attempt 2 of 10 failed; retrying after sleep of 1000 > java.io.IOException: failure to login > at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:490) > at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37) > at org.apache.hadoop.hbase.security.User.call(User.java:586) > at org.apache.hadoop.hbase.security.User.callStatic(User.java:576) > at org.apache.hadoop.hbase.security.User.access$400(User.java:50) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:393) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:388) > at org.apache.hadoop.hbase.security.User.getCurrent(User.java:139) > at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:280) > at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:332) > at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:642) > at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:106) > Caused by: javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.security.KerberosName > at org.apache.hadoop.security.User.(User.java:44) > at org.apache.hadoop.security.User.(User.java:39) > at org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule.commit(UserGroupInformation.java:130) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) > at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) > at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703) > at javax.security.auth.login.LoginContext.login(LoginContext.java:576) > at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:471) > at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37) > at org.apache.hadoop.hbase.security.User.call(User.java:586) > at org.apache.hadoop.hbase.security.User.callStatic(User.java:576) > at org.apache.hadoop.hbase.security.User.access$400(User.java:50) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:393) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:388) > at org.apache.hadoop.hbase.security.User.getCurrent(User.java:139) > at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:280) > at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:332) > at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:642) > at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:106) > 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... > CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION > > http://www.uci.cu > http://www.facebook.com/universidad.uci > http://www.flickr.com/photos/universidad_uci -- Marcos Luis Ort�z Valmaseda Data Engineer&& Sr. System Administrator at UCI http://marcosluis2186.posterous.com http://www.linkedin.com/in/marcosluis2186 Twitter: @marcosluis2186 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci --------------070605030707050502060008--