hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <els...@apache.org>
Subject Re: how to get the last row inserted into a hbase table
Date Wed, 11 Jul 2018 16:54:58 GMT
Unless you are including the date+time in the rowKey yourself, no.

HBase has exactly one index for fast lookups, and that is the rowKey. 
Any other query operation is (essentially) an exhaustive search.

On 7/11/18 12:07 PM, Ming wrote:
> Hi, all,
> 
>   
> 
> Is there a way to get the last row put/delete into a HBase table?
> 
> In other words, how can I tell the last time a HBase table is changed? I was
> trying to check the HDFS file stats, but HBase has memstore, so that is not
> a good way, and HFile location is internal to HBase.
> 
>   
> 
> My purpose is to quickly check the last modified timestamp for a given HBase
> table.
> 
>   
> 
> Thanks,
> 
> Ming
> 
> 

Mime
View raw message