hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnson hong <hong.jinch...@goodhope.net>
Subject The row counts of Htable is becoming small after a reduce operation(delete and put)
Date Wed, 06 Jan 2010 04:01:55 GMT

Hi,all.
I tried to modify the rowkey in a reduce,the operation looks like as
follows:

 void reduce(ImmutableBytesWritable oldKey, Iterable<Text> values,Context
context) {
      
            context.write(oldKey, new Delete(oldKey.get());
            context.write(oldKey, new Put(newKey));     //newkey may be
equals the oldkey
  }

after this operation,i found the row counts is less than before,could it be
that the put action is not granteed to be excuted after delete action ?
-- 
View this message in context: http://old.nabble.com/The-row-counts-of-Htable-is-becoming-small-after-a-reduce-operation%28delete-and-put%29-tp27026768p27026768.html
Sent from the HBase User mailing list archive at Nabble.com.


Mime
View raw message