<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Does TTL in Hbase require Major Compaction? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Does-TTL-in-Hbase-require-Major-Compaction/m-p/214170#M176085</link>
    <description>&lt;P&gt;"What does "expired data is filtered out and is not written back to the compacted StoreFile." mean?"&lt;/P&gt;&lt;P&gt;Filtered data (by TTL) would be removed on compaction. That is what this statement means.&lt;/P&gt;&lt;P&gt;As to your confusion from your test, remember that there is a difference between a "minor compaction" and a "major compaction". A "major compaction" is a re-writing of all files in a region, whereas a "minor compaction" is (possibly) a subset of the files in a Region. Because (I'm guessing) you actually mean that you've disabled schedule major compactions doesn't mean that compactions will never run in your system (this is actually a really idea if you've somehow done this, by the way).&lt;/P&gt;&lt;P&gt;A minor compaction can remove data masked by a TTL -- this is the simple case. However, tombstones can *only* be removed when a major compaction runs. This is because the tombstone may be masking records that exist in a file which was not included in the compaction process.&lt;/P&gt;&lt;P&gt;Long-story short: if you want to verify why your experiment works as it does, just grep out the region identifier for your table from the RegionServer log. You should see a message INFO (if not INFO, certainly at DEBUG) which informs you that a compaction occurred on that Region, the number of input files and size and the size of the output file. Before that compaction message, the file on disk would be the full size; after, it would be the reduced size.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hbase.apache.org/book.html#compaction" target="_blank"&gt;https://hbase.apache.org/book.html#compaction&lt;/A&gt; does a pretty good job explaining these nuances, but feel free to ask for more clarification.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 12:04:24 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2017-06-22T12:04:24Z</dc:date>
  </channel>
</rss>

