<?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: HBase Cell level TTL does not work when after memstore flushed in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69555#M54675</link>
    <description>&lt;P&gt;Got it!&lt;/P&gt;&lt;P&gt;Thank you for the explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2018 03:23:43 GMT</pubDate>
    <dc:creator>bellvirus</dc:creator>
    <dc:date>2018-07-04T03:23:43Z</dc:date>
    <item>
      <title>HBase Cell level TTL does not work when after memstore flushed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69531#M54671</link>
      <description>&lt;P&gt;Hello ~&lt;/P&gt;&lt;P&gt;I'm looking for the solution of below symtoms.&lt;/P&gt;&lt;P&gt;Anyone who knows the solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Environment : CDH 5.14 (HBase 1.2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-- create test table
create 'jkkim','f'


-- put an sample data
put 'jkkim','row2','f:name','jonggyun Kim2'

--&amp;nbsp;put another sample data&amp;nbsp;with TTL
put 'jkkim','row4','f:name','jonggyun Kim',{TTL =&amp;gt; 10000}

-- scan after 15 seconds
scan 'jkkim'

-- row4 does not shown result (expected)
ROW COLUMN+CELL
row2 column=f:name, timestamp=1530609778641, value=jonggyun Kim2
1 row(s) in 0.0120 seconds


--put sample data&amp;nbsp;again with TTL&amp;nbsp;
put 'jkkim','row4','f:name','jonggyun Kim',{TTL =&amp;gt; 10000}

-- Run manually flush command
flush 'jkkim'


--scan after 15 seconds
scan 'jkkim'

-- row4 is shown result (not expected)
ROW COLUMN+CELL
row2 column=f:name, timestamp=1530609778641, value=jonggyun Kim2
row4 column=f:name, timestamp=1530609975940, value=jonggyun Kim&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:24:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69531#M54671</guid>
      <dc:creator>bellvirus</dc:creator>
      <dc:date>2022-09-16T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: HBase Cell level TTL does not work when after memstore flushed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69552#M54672</link>
      <description>&lt;P&gt;Cell TTLs are a HFile V3 feature (as far as persistence goes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CDH5 HBase uses HFile V2 by default for backward compatibility reasons with older CDH5 HBase versions. To&amp;nbsp;persist features properly into HFiles, you must manually enable the HFile V3 feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are likely missing the following configuration property:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hfile.format.version&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;This must be&amp;nbsp;manually added into&amp;nbsp;both the CM fields noted below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HBase - Configuration - '&lt;SPAN&gt;HBase&amp;nbsp;Service Advanced Configuration Snippet (Safety Valve) for hbase-site.xml'&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;HBase - Configuration - '&lt;SPAN&gt;HBase Client Advanced Configuration Snippet (Safety Valve) for hbase-site.xml'&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Note that enabling this will not let you rollback your new HFiles of V3 back to V2 in future. That said, we do have a lot of&amp;nbsp;users on V3 running without any issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 02:11:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69552#M54672</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-07-04T02:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: HBase Cell level TTL does not work when after memstore flushed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69553#M54673</link>
      <description>&lt;P&gt;Dear Harsh J&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more questions about changing hfile format.&lt;/P&gt;&lt;P&gt;After change hfile format version, is it rewrite all of hfile to new version format?&lt;/P&gt;&lt;P&gt;Or Just be applied only newly created hfile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 02:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69553#M54673</guid>
      <dc:creator>bellvirus</dc:creator>
      <dc:date>2018-07-04T02:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: HBase Cell level TTL does not work when after memstore flushed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69554#M54674</link>
      <description>&lt;P&gt;Immediately after the config change and restart, the existing HFiles will&lt;BR /&gt;stay as is (on V2), only newly flushed HFiles will be V3. But when the&lt;BR /&gt;table/region undergoes a major compaction, all HFiles will be rewritten to&lt;BR /&gt;V3. You can force a rewrite with the HBase Shell 'major_compact' command to&lt;BR /&gt;have it immediately rewrite all files.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 03:29:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69554#M54674</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-07-04T03:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: HBase Cell level TTL does not work when after memstore flushed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69555#M54675</link>
      <description>&lt;P&gt;Got it!&lt;/P&gt;&lt;P&gt;Thank you for the explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 03:23:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-Cell-level-TTL-does-not-work-when-after-memstore/m-p/69555#M54675</guid>
      <dc:creator>bellvirus</dc:creator>
      <dc:date>2018-07-04T03:23:43Z</dc:date>
    </item>
  </channel>
</rss>

