hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kerzner <markkerz...@gmail.com>
Subject Re: Writing to the HBase table in MR job
Date Fri, 28 Jan 2011 00:46:51 GMT
To answer my question, this is what needs to be done

            BatchUpdate update = new BatchUpdate(k2.toString());
            update.put(familyCell, String.valueOf(sum).getBytes());
            oc.collect(new ImmutableBytesWritable(familyCell.getBytes()),
update);

Cheers,
Mark

On Thu, Jan 27, 2011 at 3:48 PM, Mark Kerzner <markkerzner@gmail.com> wrote:

> Hi,
>
> how does one use the (admittedly deprecated)
>
> org.apache.hadoop.hbase.mapred.TableReduce
>
> to write to a table?
>
> Thank you,
> Mark
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message