You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Ryan Rawson <ry...@gmail.com> on 2009/06/22 05:42:06 UTC
Re: [jira] Commented: (HBASE-1557) incrementColumnValue edits are not
persisted
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) <ji...@apache.org>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<ImmutableBytesWritable, Put> {
> > ...
> > ...
> > ...
> > /**
> > * {@inheritDoc}
> > */
> > @Override
> > public void write(ImmutableBytesWritable key, Put put) throws
> IOException
> > {
> > byte[] row = put.getRow();
> > for (Map.Entry<byte[], List<KeyValue>> 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<ImmutableBytesWritable, Put> {
> > ...
> > ...
> > ...
> > /**
> > * {@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.
>
>