<?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: Is there a way to find the completion of major compaction completion status via hbase client API? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-find-the-completion-of-major-compaction/m-p/183469#M145631</link>
    <description>&lt;P&gt;After polling for some time, if the state returns MAJOR, shall we confirm major compaction is completed?.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;admin.majorCompact(TableName.valueOf("testTable"));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thread.sleep("sometime");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CompactionState state=admin.getCompactionState("testTable");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(state.equals(CompactionState.MAJOR))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{ //Major compaction is completed }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This code always returns state as NONE&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 15:26:28 GMT</pubDate>
    <dc:creator>vishnu_p</dc:creator>
    <dc:date>2017-09-13T15:26:28Z</dc:date>
  </channel>
</rss>

