Re: Delete by timestamp?

2012-10-25 Thread Ted Yu
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 f

Re: Delete by timestamp?

2012-10-25 Thread Jean-Marc Spaggiari
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 versio

Re: Delete by timestamp?

2012-10-15 Thread Ted Yu
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 HTa

Re: Delete by timestamp?

2012-10-15 Thread Jean-Marc Spaggiari
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 : > Wow. Seems it's coming right on time ;) > > Is there any code example on the w

RE: Delete by timestamp?

2012-10-14 Thread Ramkrishna.S.Vasudevan
ctober 14, 2012 8:03 AM > To: user@hbase.apache.org > Subject: Re: Delete by timestamp? > > In the latest patch, you should see this class which can be used as > example > for client: > src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestBulkDelet > eProtocol.java >

Re: Delete by timestamp?

2012-10-13 Thread Ted Yu
In the latest patch, you should see this class which can be used as example for client: src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestBulkDeleteProtocol.java Cheers On Sat, Oct 13, 2012 at 5:30 PM, Jean-Marc Spaggiari < jean-m...@spaggiari.org> wrote: > Wow. Seems it's coming rig

Re: Delete by timestamp?

2012-10-13 Thread Jean-Marc Spaggiari
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 : > 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 > wrote:

Re: Delete by timestamp?

2012-10-13 Thread yuzhihong
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 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

Delete by timestamp?

2012-10-13 Thread Jean-Marc Spaggiari
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