Here's a thread on the lily list that compares RowLog vs Coprocessors fyi: http://groups.google.com/group/lily-discuss/browse_thread/thread/e50f56c47d3c8307/a52bc9f592d38327?lnk=gst&q=RowLog#a52bc9f592d38327
On Thu, May 26, 2011 at 11:20 AM, Gary Helmling <[email protected]> wrote: > Yes, there's no separate insert/update distinction in HBase. Both are > simply handled as Puts. > > For the hooks exposed to coprocessors during regular data operations, see: > > http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java?view=markup > > Specifically, you'd be interested in the prePut() and postPut() methods. > > --gh > > > On Thu, May 26, 2011 at 10:56 AM, Chris Tarnas <[email protected]> wrote: > > > HBase doesn't really distinguish between updates and inserts - they > really > > are both just puts. You would need to lock the row and then do a get to > see > > if any data exists for the row - that would allow you to to see if you > are > > doing an insert or update. I'm not sure what specific facilities > > coprocessors have to support that. > > > > -chris > > > > > > On May 26, 2011, at 10:49 AM, Himanish Kushary wrote: > > > > > Lily RowLog seems to support only "on-Update of a Row" kind of > operation > > not > > > "On-Insert of new Row in a table". is that true ? What about HBase > > > Co-processor ? Does it support doing some activity based on insert into > a > > > table ? > > > > > > On Tue, May 24, 2011 at 8:27 PM, Andrew Purtell <[email protected]> > > wrote: > > > > > >> For coprocessors you need to use trunk. > > >> > > >> - Andy > > >> > > >> --- On Tue, 5/24/11, Ted Yu <[email protected]> wrote: > > >> > > >>> From: Ted Yu <[email protected]> > > >>> Subject: Re: Any trigger like facility for HBase tables > > >>> To: [email protected] > > >>> Cc: [email protected] > > >>> Date: Tuesday, May 24, 2011, 1:48 PM > > >>> I don't think so. > > >>> > > >>> On Tue, May 24, 2011 at 1:45 PM, Himanish Kushary < > [email protected] > > >>> wrote: > > >>> > > >>>> Thanks Ted and Bill. Will take a look into both of > > >>> these. I am using CDH3, > > >>>> does it have co-processors ? > > >>>> > > >>>> On Tue, May 24, 2011 at 3:24 PM, Bill Graham <[email protected]> > > >>> wrote: > > >>>> > > >>>>> As well as > > >>>>> http://www.lilyproject.org/lily/about/playground/hbaserowlog.html > > >>>>> > > >>>>> I'd like to hear if anyone has had good or bad > > >>> experiences using either > > >>>> of > > >>>>> these techniques, as we'll soon have a need to > > >>> implement update > > >>>>> notifications as well. > > >>>>> > > >>>>> > > >>>>> On Tue, May 24, 2011 at 11:31 AM, Ted Yu <[email protected]> > > >>> wrote: > > >>>>> > > >>>>>> Take a look at > http://hbaseblog.com/2010/11/30/hbase-coprocessors/ > > >>>>>> > > >>>>>> On Tue, May 24, 2011 at 11:28 AM, Himanish > > >>> Kushary <[email protected] > > >>>>>>> wrote: > > >>>>>> > > >>>>>>> Hi, > > >>>>>>> > > >>>>>>> Is there any trigger-like facility in > > >>> HBase. I would like to get > > >>>>> notified > > >>>>>>> about any data update/insert into a > > >>> HBase table and fire up a > > >>>>> map-reduce > > >>>>>>> based on that update/insert event on > > >>> the newly inserted or updated > > >>>>> data. > > >>>>>>> > > >>>>>>> Any framework which supports this for > > >>> HBase ? > > >>>>>>> > > >>>>>>> Could somebody please suggest. > > >>>>>>> > > >>>>>>> -- > > >>>>>>> Thanks & Regards > > >>>>>>> Himanish > > >>>>>>> > > >>>>>> > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> Thanks & Regards > > >>>> Himanish > > >>>> > > >>> > > >> > > > > > > > > > > > > -- > > > Thanks & Regards > > > Himanish > > > > >
