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 60B39D92C for ; Mon, 17 Sep 2012 16:09:17 +0000 (UTC) Received: (qmail 23728 invoked by uid 500); 17 Sep 2012 16:09:15 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 23674 invoked by uid 500); 17 Sep 2012 16:09:15 -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 Delivered-To: moderator for user@hbase.apache.org Received: (qmail 10986 invoked by uid 99); 17 Sep 2012 02:13:46 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of m0brhm@gmail.com designates 209.85.216.169 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=616suFZwByuczXZ4JGk8VLsgQbI8CNpze7b6BaCZyqI=; b=bNpVvcEaVOFmkOeMfcVcUHBz5ljX2O15P3vsoAtC0G3yGI9gkrtRfz0FqpQKU0PODz VHbFWpOj0egLNQS7nmR8rJlPDsLhE9+xle8mqpmOpv7Jh7oxp3Kx6CmD4p1QLemOF8Qi G1oq15x2X6kM7cdyfQFm5Ewtx+MBLas88IBUa0lkWhnm4YjiushvgrPptGl1z8TrJa42 bckJRYKqQHJsSdiPRwcacjxjePgXQlf/bb+ASYl7jLFwL1XSAJ74ys3ekSEnGaB3KPRN vvdzRTVD5jZVEjxQGF1klrC7o2cj0nqSV3TzNrk+/DXzAjx0Z+uvUnVGF0arTmYaN2Yr FSXQ== MIME-Version: 1.0 Sender: m0brhm@gmail.com In-Reply-To: <1347838400.96816.YahooMailNeo@web121706.mail.ne1.yahoo.com> References: <1347838400.96816.YahooMailNeo@web121706.mail.ne1.yahoo.com> Date: Sun, 16 Sep 2012 22:13:19 -0400 X-Google-Sender-Auth: ALXjruLc3Llz8UmEUvyyOWQfDtM Message-ID: Subject: Re: java.io.IOEcxeption key k1 followed by a smaller key k2 From: Mohamed Ibrahim To: user@hbase.apache.org, lars hofhansl , Stack Content-Type: multipart/alternative; boundary=20cf303b39f9371f0904c9dc513b X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b39f9371f0904c9dc513b Content-Type: text/plain; charset=ISO-8859-1 Hello Lars / Stack, Thank you for responding. The 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 running my tests on. I'm currently running 0.92.1 on hadoop 1.0 . I hope I'm using the correct mix. I'm not using any external tools other than hbase java api, and inspecting the data using the shell. I ran my program, the following day I found the stack dump on the console. I checked by scanning the table that had the exception for the smaller key k1, with limit 2 from the shell and no exceptions were thrown. I can also see that the following key is larger than the first one, so nothing is wrong. I 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 inverted 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. batch improved the performance but threw this exception more. I stopped using batch and now doing single Puts & Deletes. The exception rarely gets thrown, but still sporadically gets thrown. I will read about the hfile tool, 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 with batch and see if it will happen again, and will let you know and will file a bug if I can repeat it consistently. Thank you, Mohamed Ibrahim On Sun, Sep 16, 2012 at 7:33 PM, lars hofhansl wrote: > Hmm... HBASE-6579 gets rid of that check, because we thought it no longer > necessary. > No do you remember what you did leading up to this? > Did you write these HFiles with some other tool? Done some bulk import, > etc? > > > -- Lars > > > > ________________________________ > From: Mohamed Ibrahim > To: user@hbase.apache.org > Sent: Sunday, September 16, 2012 5:59 AM > Subject: java.io.IOEcxeption key k1 followed by a smaller key k2 > > Hello All, > > I am using hbase 0.92.1 on hadoop 1 . I am getting those exceptions, and it > seems to me that it means that the hbase file is not sorted in order. So > when the scanner goes through it, it finds a smaller key after its current. > > Is that related to https://issues.apache.org/jira/browse/HBASE-6579 ?? > > It looks like upgrading to 0.94.1 (current stable) won't fix the issue. Any > recommendations ?? > > Here is the stack dump: > at > > org.apache.hadoop.hbase.regionserver.StoreScanner.next(StoreScanner.java:266) > at > > org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:138) > at > > org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:2945) > at > > org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:2901) > at > > org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:2918) > at > > org.apache.hadoop.hbase.regionserver.HRegion.getLastIncrement(HRegion.java:3660) > at > > org.apache.hadoop.hbase.regionserver.HRegion.incrementColumnValue(HRegion.java:3844) > at > > org.apache.hadoop.hbase.regionserver.HRegionServer.incrementColumnValue(HRegionServer.java:2982) > at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > > org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364) > at > org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1326) > > > at > > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getRegionServerWithRetries(HConnectionManager.java:1345) > at > org.apache.hadoop.hbase.client.HTable.incrementColumnValue(HTable.java:870) > at > org.apache.hadoop.hbase.client.HTable.incrementColumnValue(HTable.java:850) > > > Thanks, > Mohamed Ibrahim > --20cf303b39f9371f0904c9dc513b--