Glad that you like the approach, Jean-Marc. Tell us your experience when 0.94.3 comes out next month.
On Thu, Oct 25, 2012 at 6:51 AM, Jean-Marc Spaggiari < jean-m...@spaggiari.org> wrote: > Hi Ted, > > Sorry, I totally missed this email too :( Many of my HBase list emails > went into the junk folder those last few weeks and just figured that > yesterday. So I have a LOT of reading to do. > > I looked at all the HBASE-6942 thread and seems it's now commited in > 0.94.3. I will wait for this version to be available to test it, but I > really like the approach already. > > JM > > 2012/10/15, Ted Yu <yuzhih...@gmail.com>: > > Jean-Marc: > > What do you think of the approach in patch v5 from HBASE-6942 ? > > Here is the sample from patch v5: > > > > + private long invokeBulkDeleteProtocol(byte[] tableName, final Scan > scan, > > + final int rowBatchSize, DeleteType deleteType, Long timeStamp) > > throws Throwable { > > + HTable ht = new HTable(TEST_UTIL.getConfiguration(), tableName); > > + long noOfDeletedRows = 0L; > > + scan.setAttribute(BulkDeleteEndpoint.DELETE_ROW_BATCH_SIZE, > > Bytes.toBytes(rowBatchSize)); > > + scan.setAttribute(BulkDeleteEndpoint.DELETE_TYPE, > > deleteType.getBytes()); > > + if (timeStamp != null) { > > + scan.setAttribute(BulkDeleteEndpoint.DELETE_TIME_STAMP, > > Bytes.toBytes(timeStamp)); > > + } > > > > Cheers > > > > On Mon, Oct 15, 2012 at 7:04 AM, Jean-Marc Spaggiari < > > jean-m...@spaggiari.org> wrote: > > > >> I found that: > >> https://blogs.apache.org/hbase/entry/coprocessor_introduction > >> which is, I think, giving all the details to call the end point... So > >> I will give a try to all of that. > >> > >> JM > >> > >> 2012/10/13, Jean-Marc Spaggiari <jean-m...@spaggiari.org>: > >> > Wow. Seems it's coming right on time ;) > >> > > >> > Is there any code example on the way to call an endpoint? > >> > > >> > Thanks, > >> > > >> > JM > >> > > >> > 2012/10/13 <yuzhih...@gmail.com>: > >> >> Please take a look at HBASE-6942 where you can achieve the following > >> using > >> >> an endpoint. > >> >> > >> >> Cheers > >> >> > >> >> > >> >> > >> >> On Oct 13, 2012, at 4:26 PM, Jean-Marc Spaggiari < > >> jean-m...@spaggiari.org> > >> >> wrote: > >> >> > >> >>> Hi, > >> >>> > >> >>> Is there a way to delete all rows older than a certain date? > >> >>> > >> >>> In the delete object we can specify a timestamp but we have to > >> >>> specify > >> >>> a row too. > >> >>> > >> >>> I can still do a MR job and delete all row older than the given > date, > >> >>> but is there another option? > >> >>> > >> >>> Thanks, > >> >>> > >> >>> JM > >> > > >> > > >