Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 69149 invoked from network); 22 Jun 2009 03:42:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 03:42:40 -0000 Received: (qmail 85101 invoked by uid 500); 22 Jun 2009 03:42:51 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 85063 invoked by uid 500); 22 Jun 2009 03:42:51 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 85053 invoked by uid 99); 22 Jun 2009 03:42:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 03:42:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryanobjc@gmail.com designates 209.85.210.185 as permitted sender) Received: from [209.85.210.185] (HELO mail-yx0-f185.google.com) (209.85.210.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 03:42:41 +0000 Received: by yxe15 with SMTP id 15so4036415yxe.5 for ; Sun, 21 Jun 2009 20:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=x3OQCSAzOnrt9qcePiZFpaMDKHcAH+REuw2Gazx5yUA=; b=IXz4SICm0Gh6Oqf0CNLbcGG8HpYdOGn6iYNKlYijtEPGoRM+texajm5Gu6nUG/HGMx s39i9rd3sNTSFKTptFJP5xC+N/8LEtqiBx767KrGZXkp4IK7i5S8vZX3ng3JRzIuiqmh xHl4GNk+9JNU46S6PtPQeWGv4NEBGOEkJGM/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KnbQjhis6U4VGSql55+u0OOL3IqMjJ/owc9sW/NwWa1KHtU3HfPO8xiqXsI8OkL5MF 2MYuhVVvYhfe7Lz8MomqXxmf3/JctPSb1oV8a8Nr6NVqu0CHl8mDjhO0GDutBlGHYqia pfetEakfmmQigDC8JfzCx5ZCpMhYMYcX9yYrY= MIME-Version: 1.0 Received: by 10.151.124.10 with SMTP id b10mr10402247ybn.160.1245642126505; Sun, 21 Jun 2009 20:42:06 -0700 (PDT) In-Reply-To: <366573556.1245641887341.JavaMail.jira@brutus> References: <555767620.1245525487741.JavaMail.jira@brutus> <366573556.1245641887341.JavaMail.jira@brutus> Date: Sun, 21 Jun 2009 20:42:06 -0700 Message-ID: <78568af10906212042qda5892egf18f35c70d9571ef@mail.gmail.com> Subject: Re: [jira] Commented: (HBASE-1557) incrementColumnValue edits are not persisted From: Ryan Rawson To: hbase-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=001e680f0a5077b6e0046ce7a815 X-Virus-Checked: Checked by ClamAV on apache.org --001e680f0a5077b6e0046ce7a815 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Can you verify what is in hbase/lib/hadoop*.jar ? It should be the variant like so: hadoop-0.20.0-plus4681-core.jar I wouldn't stop the server until you can do your demo, since I'm not 100% sure if you are seeing flushes of your ICV data or not. If this table/column family was only created with ICV, then you may be in good shape. Thanks for testing the alpha! -ryan On Sun, Jun 21, 2009 at 8:38 PM, Irfan Mohammed (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/HBASE-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722470#action_12722470] > > Irfan Mohammed commented on HBASE-1557: > --------------------------------------- > > here is the snip of the "hadoop dfs -lsr hdfs://app48:11000/hbase" > > drwxr-xr-x - qwapi supergroup 0 2009-06-21 22:53 > /hbase/transaction_impression/1684039776/gender > -rw-r--r-- 1 qwapi supergroup 698515 2009-06-21 09:10 > /hbase/transaction_impression/1684039776/gender/1775984732506941500 > -rw-r--r-- 1 qwapi supergroup 147422 2009-06-21 11:20 > /hbase/transaction_impression/1684039776/gender/3121373883819729703 > -rw-r--r-- 1 qwapi supergroup 119241 2009-06-21 12:04 > /hbase/transaction_impression/1684039776/gender/3146097270073712628 > -rw-r--r-- 1 qwapi supergroup 211137 2009-06-21 22:53 > /hbase/transaction_impression/1684039776/gender/5773081374290155305 > -rw-r--r-- 1 qwapi supergroup 174108 2009-06-21 18:52 > /hbase/transaction_impression/1684039776/gender/6345196659527815961 > -rw-r--r-- 1 qwapi supergroup 219050 2009-06-21 10:36 > /hbase/transaction_impression/1684039776/gender/6999125414335797495 > -rw-r--r-- 1 qwapi supergroup 1005833 2009-06-21 03:35 > /hbase/transaction_impression/1684039776/gender/7883801781648008956 > > > > incrementColumnValue edits are not persisted > > -------------------------------------------- > > > > Key: HBASE-1557 > > URL: https://issues.apache.org/jira/browse/HBASE-1557 > > Project: Hadoop HBase > > Issue Type: Bug > > Reporter: Andrew Purtell > > Fix For: 0.20.0, 0.19.4 > > > > > > From Irfan up on hbase-users@ > > I shutdown hbase using the following command > > {{$ HBASE_HOME/bin/stop-hbase.sh}} > > and it shuts down properly after a few seconds. > > here is my observation since last night. If I user TableRecordWriter1 > uses HTable.incrementColumnValue, then the table data is not persisted > across restarts but if I use TableRecordWriter2 then the table data is > persisted across the restarts. > > Any clues ... > > Thanks, > > Irfan > > {code} > > protected static class TableRecordWriter extends > RecordWriter { > > ... > > ... > > ... > > /** > > * {@inheritDoc} > > */ > > @Override > > public void write(ImmutableBytesWritable key, Put put) throws > IOException > > { > > byte[] row = put.getRow(); > > for (Map.Entry> familyEntry : > put.getFamilyMap().entrySet()) { > > byte[] family = familyEntry.getKey(); > > for (KeyValue keyValue : familyEntry.getValue()) { > > byte[] qualifier = keyValue.getQualifier(); > > long amount = Bytes.toLong(keyValue.getValue()); > > this.table_.incrementColumnValue(row, family, > qualifier, amount); > > } > > } > > } > > } > > {code} > > ------ > > {code} > > protected static class TableRecordWriter2 extends > RecordWriter { > > ... > > ... > > ... > > /** > > * {@inheritDoc} > > */ > > public void write(ImmutableBytesWritable key, Put put) throws > IOException { > > this.table_.put(new Put(put)); > > } > > } > > {code} > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > --001e680f0a5077b6e0046ce7a815--