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 91119D6BF for ; Mon, 17 Sep 2012 04:34:41 +0000 (UTC) Received: (qmail 20332 invoked by uid 500); 17 Sep 2012 04:06:51 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 20021 invoked by uid 500); 17 Sep 2012 04:06:41 -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 19921 invoked by uid 99); 17 Sep 2012 04:06:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 04:06:38 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,FSL_FREEMAIL_1,FSL_FREEMAIL_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.91] (HELO nm15-vm2.bullet.mail.ne1.yahoo.com) (98.138.91.91) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 Sep 2012 04:06:29 +0000 Received: from [98.138.226.179] by nm15.bullet.mail.ne1.yahoo.com with NNFMP; 17 Sep 2012 04:06:08 -0000 Received: from [98.138.88.232] by tm14.bullet.mail.ne1.yahoo.com with NNFMP; 17 Sep 2012 04:06:08 -0000 Received: from [127.0.0.1] by omp1032.mail.ne1.yahoo.com with NNFMP; 17 Sep 2012 04:06:08 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 92360.7207.bm@omp1032.mail.ne1.yahoo.com Received: (qmail 97730 invoked by uid 60001); 17 Sep 2012 04:06:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1347854768; bh=Zi8p4T/psz+/QcfTYviI/axhbJQgrUStdsw8g5HuYXE=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=zbffCy0ikqCo4rIqnFvCuv/Ok3NnV3u35XuoWBPbGKBHYBxrrzodWXwqfFWHp5tYlLvr1P18I6Nfs83L5Kv2ovjjCItBWFPtrTl83pdcl8qHUWTSBGY2DCft5txYxeVOgsPdgi3uWh/J+9igTjeqvO3adjQih4k44ueed/IISwk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=lbAnBut2ZkmFIdyrS8BkJSuvFjCq02Fi59OENQtghgwB+55DQLjyk1io7PgsR6LfxEYDF0H1mIoaBYBQxinxzGIoQ7FHdGt2SkudHru3pcBrPZ5gEwa6GWTLG6fYZsvJZrqdKFWNs1jMMYNofsFOlhvAd1B29KxR6p5USLRb6LE=; X-YMail-OSG: 76C3T_QVM1ms9AYf1uP7Jsmi_.U4YZr0EhKvu3LRPK.qgzX .tpGxMsdxY3quB.7rmLHle6Qh5emcRMoKI1hb3Y0SOYtcGBsL4n.gl2booud o6WsaMYrTGsF1zy8cbj3d9zyGv5KisF.R6BntiRKDL4SW5Gbg4PX7aytIPCw RnGgfdYnvvMvb144Hk4V7_yrP5A.7rB3Mmb4T_Ilm_roEaTm9N6S4WyEC8uB vINK4O8MzrrRSJotGnSonrgTiA8R2a3BOqb684gzDOTIL5QITrCyNLu55t50 _T2YwaqiY7gCxEmhVICY02l7OL0I.UMtdpGKBIlh7e5QQCP0AIeFFElQ.fiM yIjsfzULGzB8cdDt3y8WoLmWnJSTSxzobuVYYywmzadZtlUaKuHJPp.JeySI 0Sg9AFDk3hUizLsnP0CxavhNGY9QL2s6k5VQEDzdkZPRWaE3lGxL29nd4SSq 8gUm9n7uf__Zjqgw84J3wxf1PXDByAXopwlvtA1t0DELpEIt4XJ2MzidD6Tr muvh5UDzF.N3iwkM4r1cj7MRDQUjvvk3JnGEPYjp65lXZQc135hGl0rXDWV7 6 Received: from [69.181.180.117] by web121706.mail.ne1.yahoo.com via HTTP; Sun, 16 Sep 2012 21:06:07 PDT X-Mailer: YahooMailWebService/0.8.121.416 References: <1347838400.96816.YahooMailNeo@web121706.mail.ne1.yahoo.com> Message-ID: <1347854767.97374.YahooMailNeo@web121706.mail.ne1.yahoo.com> Date: Sun, 16 Sep 2012 21:06:07 -0700 (PDT) From: lars hofhansl Reply-To: lars hofhansl Subject: Re: java.io.IOEcxeption key k1 followed by a smaller key k2 To: "user@hbase.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-730330825-1954445335-1347854767=:97374" ---730330825-1954445335-1347854767=:97374 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable It would be good track this down. Any way you can share the tools you use t= o load the data?=0AIs it easy for you to reproduce this problem?=0A=0AIt's = possible (but not likely) that there is a bug in Hadoop 1.0. You should use= 1.0.3.=0A=0A-- Lars=0A=0A=0A=0A________________________________=0A From: M= ohamed Ibrahim =0ATo: user@hbase.apache.org; lars ho= fhansl ; Stack =0ASent: Sunday, Sep= tember 16, 2012 7:13 PM=0ASubject: Re: java.io.IOEcxeption key k1 followed = by a smaller key k2=0A =0A=0AHello Lars / Stack,=0A=0AThank you for respond= ing.=0A=0AThe date on the files is March 9th 2012. It's been up since then,= I restarted hbase and hadoop once. I only have a single node that I'm runn= ing my tests on. I'm currently running 0.92.1 on hadoop 1.0 . I hope I'm us= ing the correct mix.=0A=0AI'm not using any external tools other than hbase= java api, and inspecting the data using the shell. I ran my program, the f= ollowing day I found the stack dump on the console. I checked by scanning t= he table that had the exception for the smaller key k1, with limit 2 from t= he shell and no exceptions were thrown. I can also see that the following k= ey is larger than the first one, so nothing is wrong.=0A=0AI faced the same= exception before and it happened more frequently when I did a lot of Puts = and Deletes using Htable.batch . Essentially I was updating several inverte= d indexes each in its own table on the data of rows when they get inserted,= and instead of doing single Deletes & Puts on the indexes I used batch. ba= tch improved the performance but threw this exception more. I stopped using= batch and now doing single Puts & Deletes. The exception rarely gets throw= n, but still sporadically gets thrown.=0A=0AI will read about the hfile too= l, thanks for the pointers. I will also try figure out a set of steps that = would repeat the exception so it is more helpful. I will also try 0.94.1 wi= th batch and see if it will happen again, and will let you know and will fi= le a bug if I can repeat it consistently.=0A=0AThank you,=0AMohamed Ibrahim= =0A=0A=0AOn Sun, Sep 16, 2012 at 7:33 PM, lars hofhansl wrote:=0A=0AHmm... HBASE-6579 gets rid of that check, because we thought= it no longer necessary.=0A>No do you remember what you did leading up to t= his?=0A>Did you write these HFiles with some other tool? Done some bulk imp= ort, etc?=0A>=0A>=0A>-- Lars=0A>=0A>=0A>=0A>_______________________________= _=0A>=A0From: Mohamed Ibrahim =0A>To: user@hbase.apache.o= rg=0A>Sent: Sunday, September 16, 2012 5:59 AM=0A>Subject: java.io.IOEcxept= ion key k1 followed by a smaller key k2=0A>=0A>=0A>Hello All,=0A>=0A>I am u= sing hbase 0.92.1 on hadoop 1 . I am getting those exceptions, and it=0A>se= ems to me that it means that the hbase file is not sorted in order. So=0A>w= hen the scanner goes through it, it finds a smaller key after its current.= =0A>=0A>Is that related to https://issues.apache.org/jira/browse/HBASE-6579= ??=0A>=0A>It looks like upgrading to 0.94.1 (current stable) won't fix the= issue. Any=0A>recommendations ??=0A>=0A>Here is the stack dump:=0A>=A0 =A0= =A0 =A0 at=0A>org.apache.hadoop.hbase.regionserver.StoreScanner.next(Store= Scanner.java:266)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.regionse= rver.KeyValueHeap.next(KeyValueHeap.java:138)=0A>=A0 =A0 =A0 =A0 at=0A>org.= apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRe= gion.java:2945)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.regionserv= er.HRegion$RegionScannerImpl.next(HRegion.java:2901)=0A>=A0 =A0 =A0 =A0 at= =0A>org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRe= gion.java:2918)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.regionserv= er.HRegion.getLastIncrement(HRegion.java:3660)=0A>=A0 =A0 =A0 =A0 at=0A>org= .apache.hadoop.hbase.regionserver.HRegion.incrementColumnValue(HRegion.java= :3844)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.regionserver.HRegio= nServer.incrementColumnValue(HRegionServer.java:2982)=0A>=A0 =A0 =A0 =A0 at= sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)=0A>=A0 =A0 = =A0 =A0 at=0A>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet= hodAccessorImpl.java:43)=0A>=A0 =A0 =A0 =A0 at java.lang.reflect.Method.inv= oke(Method.java:616)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.ipc.W= ritableRpcEngine$Server.call(WritableRpcEngine.java:364)=0A>=A0 =A0 =A0 =A0= at=0A>org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java= :1326)=0A>=0A>=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.client.HCon= nectionManager$HConnectionImplementation.getRegionServerWithRetries(HConnec= tionManager.java:1345)=0A>=A0 =A0 =A0 =A0 at=0A>org.apache.hadoop.hbase.cli= ent.HTable.incrementColumnValue(HTable.java:870)=0A>=A0 =A0 =A0 =A0 at=0A>o= rg.apache.hadoop.hbase.client.HTable.incrementColumnValue(HTable.java:850)= =0A>=A0 =A0 =A0 =A0 =0A>=0A>Thanks,=0A= >Mohamed Ibrahim ---730330825-1954445335-1347854767=:97374--