hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lars hofhansl <la...@apache.org>
Subject Re: Coprocessor beacuse of TTL expired?
Date Mon, 21 Jul 2014 14:19:04 GMT
It's possible but ... uhm... Tedious. You would have to use the pre flush and compaction scanner
open hooks, do the TTL calculation yourself for each KeyValue that passes through the scanner
and then act accordingly.

Checkout RegionObserver.preCompactScannerOpen(...) and preFlushScannerOpen(...)

It's possible we could add something like this.

-- Lars



________________________________
 From: Guillermo Ortiz <konstt2000@gmail.com>
To: "user@hbase.apache.org" <user@hbase.apache.org> 
Sent: Monday, July 21, 2014 5:24 AM
Subject: Coprocessor beacuse of TTL expired?
 

I want to use coprocessors (observers), Could I execute an coprocessors
which executes my code when a row expired because the TTL has expired?

will it be executed automatically? I mean,, without any scan or get over
that row?? it's a pre and post delete or which observer?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message