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 1C5EC180F6 for ; Sun, 15 Nov 2015 08:30:11 +0000 (UTC) Received: (qmail 87569 invoked by uid 500); 15 Nov 2015 08:30:09 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 87502 invoked by uid 500); 15 Nov 2015 08:30:09 -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 87490 invoked by uid 99); 15 Nov 2015 08:30:08 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2015 08:30:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 70CD6C0052 for ; Sun, 15 Nov 2015 08:30:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.888 X-Spam-Level: ** X-Spam-Status: No, score=2.888 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8Mez50XFjxU0 for ; Sun, 15 Nov 2015 08:30:04 +0000 (UTC) Received: from nm25-vm1.bullet.mail.bf1.yahoo.com (nm25-vm1.bullet.mail.bf1.yahoo.com [98.139.212.155]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A3EF720C08 for ; Sun, 15 Nov 2015 08:30:03 +0000 (UTC) Received: from [66.196.81.171] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 15 Nov 2015 08:29:57 -0000 Received: from [98.139.212.224] by tm17.bullet.mail.bf1.yahoo.com with NNFMP; 15 Nov 2015 08:29:57 -0000 Received: from [127.0.0.1] by omp1033.mail.bf1.yahoo.com with NNFMP; 15 Nov 2015 08:29:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 288821.46275.bm@omp1033.mail.bf1.yahoo.com X-YMail-OSG: 1.D.l2oVM1mJDr8T3BXKMMf5tR2s.NvABM87XA0WQaOcT_9i7eARTNm9rKTL6KR vCn4XDy1nTVSV07Hy.lJ1mHmtn2kza337ODW8b7oX_PMVfKRTwwFMeod3FfB8vpnTeZuQrYsIAZB 0RVSmOGYP1wLei1aMuaQj3Fu94y6j2oP_Ag02Qq5oL.xAkbvB2b1HUqtwQ8LmBICSumndmRueva6 MhDjlWIGXw0ZLliMncfSOSeDLt2t20jGhmmg8Oxgz31LfmTBk1j1k.Jns3xk9C0GnyxkgoE3fVGe 8mwLH1f5S7qvh41y8RlhDxz.mdtFrd0rj5DlDvQblHk7_GpjbE5uzUTdKngcjpGHOrp2RQSErxpP TGi8P2rqdUoR5WBBoAqy0iQyNGkYoKZaGKSK8yOQXM5yGww2BEURimULNGKkszajjzCuFrPmUT5w gzkThvGl4eg_17HsQT2oDoSFjwaWCUQmjoaoeu8s_6VVCUaW.I6ePysWEtql3QkzCYQHznqj7d7x k7QhKu7c7FzA- Received: by 76.13.27.132; Sun, 15 Nov 2015 08:29:56 +0000 Date: Sun, 15 Nov 2015 08:29:56 +0000 (UTC) From: Sumit Nigam Reply-To: Sumit Nigam To: Ted Yu , "user@hbase.apache.org" Message-ID: <1857428539.5122369.1447576196480.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: About exceptions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5122368_375003580.1447576196466" ------=_Part_5122368_375003580.1447576196466 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ted, Thanks for your reply. I am using Hbase 0.98.14. I have used hbck, but for = some (unknown) reason it has not always resolved inconsistencies.=C2=A0 I have been able to get around these issues so far by deleting ZK entries f= or the offending table and restarting Hbase. But I am not sure what causes = them in the first place and if I can avoid those issues through code or not= . Also, upon getting these exceptions is it a good idea to retry the operat= ion. I think Hbase fails only after it exhausts its attempts so retrying ma= y not be helpful? Here are 3 logs snippets: 1.=C2=A0TableNamespaceManager isn't ready to serve: Fri Nov 13 17:47:19 IST 2015, org.apache.hadoop.hbase.client.RpcRetryingCal= ler@44726f67,org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(java.io.= IOException):java.io.IOException: org.apache.hadoop.hbase.master.TableNames= paceManager isn'tready to serve =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atorg.apache.hadoop.hbase.master= .TableNamespaceManager.getNamespaceTable(TableNamespaceManager.java:112) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atorg.apache.hadoop.hbase.master= .TableNamespaceManager.list(TableNamespaceManager.java:211) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atorg.apache.hadoop.hbase.master= .HMaster.listNamespaceDescriptors(HMaster.java:3473) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atorg.apache.hadoop.hbase.master= .HMaster.listNamespaceDescriptors(HMaster.java:3367) 2. TableExistsException: Caused by: org.apache.hadoop.hbase.TableExistsException: org.apache.hadoop.= hbase.TableExistsException: ldmns:exDocStoreat org.apache.hadoop.hbase.mast= er.procedure.CreateTableProcedure.prepareCreate(CreateTableProcedure.java:3= 00)at org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.execute= FromState(CreateTableProcedure.java:106)at org.apache.hadoop.hbase.master.p= rocedure.CreateTableProcedure.executeFromState(CreateTableProcedure.java:58= )... at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetr= yingCaller.java:90)at org.apache.hadoop.hbase.client.HBaseAdmin.executeCall= able(HBaseAdmin.java:3403)at org.apache.hadoop.hbase.client.HBaseAdmin.crea= teTableAsync(HBaseAdmin.java:632)at org.apache.hadoop.hbase.client.HBaseAdm= in.createTable(HBaseAdmin.java:523) 3. TableNotEnabledException: Caused by: org.apache.hadoop.hbase.TableNotEnabledException: ldmns:DataDoma= in_stage is disabled. at org.apache.hadoop.hbase.client.HConnectionManager$= HConnectionImplementation.relocateRegion(HConnectionManager.java:1139) at o= rg.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.= getRegionLocation(HConnectionManager.java:963) at org.apache.hadoop.hbase.c= lient.RegionServerCallable.prepare(RegionServerCallable.java:74) at org.apa= che.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller= .java:114) at org.apache.hadoop.hbase.client.HTable.get(HTable.java:833) at= org.apache.hadoop.hbase.client.HTable.get(HTable.java:810) at org.apache.h= adoop.hbase.client.HTable.get(HTable.java:842) at com.thinkaurelius.titan.d= iskstorage.hbase.HBaseKeyColumnValueStore.getHelper(HBaseKeyColumnValueStor= e.java:155) From: Ted Yu To: "user@hbase.apache.org" ; Sumit Nigam =20 Sent: Sunday, November 15, 2015 10:50 AM Subject: Re: About exceptions =20 bq.=C2=A0TableNotEnabledExceptionTableNotFoundExceptionIOException Can you show log snippets where these exceptions occurred ?Which release of= hbase are you using ? Have you run hbck to repair the inconsistencies ? See=C2=A0http://hbase.apache.org/book.html#hbck.in.depth Cheers On Sat, Nov 14, 2015 at 8:42 PM, Sumit Nigam = wrote: Hi, There are some exceptions which I face intermittently with Hbase and I thou= ght some help from experts online can really help me. These are: TableNotEnabledExceptionTableNotFoundExceptionIOException - TableNamespaceM= anager isn't ready to serve One of the reasons I can see for this seems to be zookeeper and Hbase/ Hdfs= data being out of sync due to an unclean shutdown.=C2=A0 So, my questions are these: 1. Are these exceptions only related to unclean shutdowns?2. Do I need to e= xplicitly handle them and retry the operation again because they also seem = to indicate that it is some race condition between trying to access a table= vs Hbase enabling them? Any help is greatly appreciated. Thanks,Sumit ------=_Part_5122368_375003580.1447576196466--