hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Rodionov <vladrodio...@gmail.com>
Subject Re: What cause hfile saved under /hbase/.archive besides snapshot?
Date Fri, 05 Jun 2015 20:25:59 GMT
HBase moves old hfiles into archive directory after compaction is finished.
Compacted files are not deleted
because they can be still in use (some long running scanners) - that is why
they get moved into archive directory.
HBase can locate hfile in both: standard and archive directory. There is a
separate archive cleaner agent which runs
periodically and cleans archive from hfiles which are no longer used.


On Fri, Jun 5, 2015 at 12:25 PM, Tianying Chang <tychang@gmail.com> wrote:

> Hi,
> I found that there are many hfiles saved under /hbase/.archive/table/. I
> know when there is a  snapshot taken, the hfile might have to be saved
> under /hbase/.archive. But when we are not even taking snapshot, I saw lots
> of hfiles under /hbase/.archive. I noticed that if I run a major
> compaction, that seems clean up lots of hfiles from /hbase/.archive. But
> then it grows back again later.
> Wondering what else could cause hfiles stuck under /hbase/.archinve? Any
> hint is appreciated.
> Thanks
> Tian-YIng

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message