You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Weiping Qu <qu...@informatik.uni-kl.de> on 2014/10/05 01:52:14 UTC
Incrementally scan table
Hi,
I am wondering whether I can incrementally get newly inserted tuples
from hbase scanner instead of rescanning.
It seems that ResultScanner gives me only the tuples from the table
status when I issued the table.getScanner.
Newly inserted tuples would be blocked here.
Is there any possibility to see these new tuples from the old scanner?
Thank you!
Re: Incrementally scan table
Posted by Ted Yu <yu...@gmail.com>.
The answer is no.
Cheers
On Oct 4, 2014, at 4:52 PM, Weiping Qu <qu...@informatik.uni-kl.de> wrote:
> Hi,
>
> I am wondering whether I can incrementally get newly inserted tuples from hbase scanner instead of rescanning.
> It seems that ResultScanner gives me only the tuples from the table status when I issued the table.getScanner.
> Newly inserted tuples would be blocked here.
> Is there any possibility to see these new tuples from the old scanner?
>
> Thank you!
Re: Incrementally scan table
Posted by lars hofhansl <la...@apache.org>.
To see new KVs in a scan you can set the isolation level (Scan.setIsolationLevel(...)) to READ_UNCOMMITTED.
But note that this is probably not what you want. The scan would not reset of region already seen, so if tuples are added there you won't see them.
Also with this setting you can see partially constructed rows.
TL;DR: You can't really do that.
-- Lars
----- Original Message -----
From: Weiping Qu <qu...@informatik.uni-kl.de>
To: HBase Dev List <de...@hbase.apache.org>
Cc:
Sent: Saturday, October 4, 2014 4:52 PM
Subject: Incrementally scan table
Hi,
I am wondering whether I can incrementally get newly inserted tuples
from hbase scanner instead of rescanning.
It seems that ResultScanner gives me only the tuples from the table
status when I issued the table.getScanner.
Newly inserted tuples would be blocked here.
Is there any possibility to see these new tuples from the old scanner?
Thank you!