Watch out - increment is not idempotent, so you will have to somehow ensure that a map runs exactly 1x and never more or less than that. Also job failures will ruin the data as well.
-ryan On Fri, Jun 17, 2011 at 1:57 PM, Stack <st...@duboce.net> wrote: > Go for it! > St.Ack > > On Fri, Jun 17, 2011 at 1:43 PM, Leif Wickland <leifwickl...@gmail.com> wrote: >> I tried to use TableMapper and TableOutputFormat in >> from org.apache.hadoop.hbase.mapreduce to write a map-reduce which >> incremented some columns. I noticed that TableOutputFormat.write() doesn't >> support Increment, only Put and Delete. >> >> Is there a reason that TableOutputFormat shouldn't support increment? >> >> I think adding support for increment would only require adding a copy >> constructor to Increment and a few lines to TableOutputFormat: I'd be >> willing to give writing the patch a try if there's no objection. >> >> Leif Wickland >> >