On Thu, Apr 2, 2009 at 3:30 PM, Ryan Rawson <[email protected]> wrote:
> The last thing - success should not be a function of sort order.
>
> However, speed will be related.

How?  Sorted = faster, or Sorted = slower?

>
> One thing I found I had to do was:
>    private void doCommit(HTable t, BatchUpdate update) throws IOException {
>      boolean commited = false;
>      while (!commited) {
>        try {
>          t.commit(update);
>          commited = true;
>        } catch (RetriesExhaustedException e) {
>          // DAMN, ignore
>        }
>      }
>    }
>

I'm running a mapred job, using TableOutputFormat to write the results
to HBase.  For the code you've provided, was that for a custom output
format?  Or a standalone (non-mapred) application?  I see the point
you're making, I just don't understand where I'd put that code.
Thanks!

Reply via email to