<?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 table is stuck in &amp;quot;Disabling&amp;quot; state. Neither ENABLED nor DISABLED in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/313090#M225412</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/53850"&gt;@sheshk11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing your knowledge (Knowledge Article) on managing the DISABLING Table. As&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72948"&gt;@tencentemr&lt;/a&gt;&amp;nbsp;mentioned, It has been helpful. Few other details I wish to add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Using the Link [1] HBCK&amp;nbsp;setTableState to perform the same on HBase v2.x. The advantage of using the same is to ensure the manual intervention is avoided to avoid any unintended HBase Metadata manipulation.&lt;/P&gt;
&lt;P&gt;2. In certain cases, the Regions belonging to the Table would be in Transition as well. If we are Disabling the Table, It's best to review the RegionState for the Table as well. Link [1] HBCK&amp;nbsp;setRegionState can assist here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the Post is a KA, I shall mark the same as Resolved. Thank You for posting the same for assisting fellow Community Members.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Smarak&lt;/P&gt;
&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2" target="_blank" rel="noopener"&gt;https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 08:39:44 GMT</pubDate>
    <dc:creator>smdas</dc:creator>
    <dc:date>2021-03-16T08:39:44Z</dc:date>
    <item>
      <title>Hbase table is stuck in "Disabling" state. Neither ENABLED nor DISABLED</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/235112#M196932</link>
      <description>&lt;P&gt;This is just a knowledge sharing article. I had faced this issue in production and took me a day to resolve it.&lt;/P&gt;&lt;P&gt;The workaround that I'm sharing will help you in getting your table back online in "Enabled" without deleting Zookeeper Hbase table znode or any data as a matter of fact..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here are steps to resolve it.&lt;/P&gt;&lt;P&gt;1. Run a "get" command against &lt;EM&gt;hbase:meta &lt;/EM&gt;for the affected table&lt;/P&gt;&lt;PRE&gt;hbase(main):003:0&amp;gt; get 'hbase:meta', '&amp;lt;AFFECTED_TABLE_NAME&amp;gt;', 'table:state' COLUMN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CELL &amp;nbsp;table:state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timestamp=1551456805377, &lt;STRONG&gt;&lt;U&gt;value=\x08\x02&lt;/U&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2. Notice the above "value". Its pointing to &lt;STRONG&gt;\x08\x02 &lt;/STRONG&gt;which is wrong. The value should either be&lt;U&gt; \x08\x00&lt;/U&gt; (Enabled) or &lt;U&gt;\x08\x01&lt;/U&gt; (Disabled)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;3. Edit the value manually.&lt;/P&gt;&lt;PRE&gt;hbase(main):003:0&amp;gt; put 'hbase:meta','&amp;lt;AFFECTED_TABLE_NAME&amp;gt;','table:state',"\b\0"&lt;/PRE&gt;&lt;P&gt;Click &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://donsnotes.com/tech/charsets/ascii.html" target="_blank"&gt;here&lt;/A&gt; for more information on "Control Characters"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;4. Verify the same.&lt;/P&gt;&lt;PRE&gt;hbase(main):003:0&amp;gt; get 'hbase:meta', '&amp;lt;AFFECTED_TABLE_NAME&amp;gt;', 'table:state'&lt;/PRE&gt;&lt;P&gt;The "value" now should be &lt;U&gt; \x08\x00&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Post this, again run &lt;STRONG&gt;&lt;EM&gt;disable &amp;lt;table_name&amp;gt; &lt;/EM&gt;&lt;/STRONG&gt;and &lt;STRONG&gt;&lt;EM&gt;enable &amp;lt;table_name&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; just for the love of sanity check in hbase shell and you are done with the issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 20:35:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/235112#M196932</guid>
      <dc:creator>sheshk11</dc:creator>
      <dc:date>2019-03-02T20:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase table is stuck in "Disabling" state. Neither ENABLED nor DISABLED</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/313038#M225382</link>
      <description>&lt;P&gt;thanx&amp;nbsp; &amp;nbsp;a lot,this&amp;nbsp; really helpful. it works.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:58:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/313038#M225382</guid>
      <dc:creator>tencentemr</dc:creator>
      <dc:date>2021-03-15T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hbase table is stuck in "Disabling" state. Neither ENABLED nor DISABLED</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/313090#M225412</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/53850"&gt;@sheshk11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing your knowledge (Knowledge Article) on managing the DISABLING Table. As&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72948"&gt;@tencentemr&lt;/a&gt;&amp;nbsp;mentioned, It has been helpful. Few other details I wish to add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Using the Link [1] HBCK&amp;nbsp;setTableState to perform the same on HBase v2.x. The advantage of using the same is to ensure the manual intervention is avoided to avoid any unintended HBase Metadata manipulation.&lt;/P&gt;
&lt;P&gt;2. In certain cases, the Regions belonging to the Table would be in Transition as well. If we are Disabling the Table, It's best to review the RegionState for the Table as well. Link [1] HBCK&amp;nbsp;setRegionState can assist here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the Post is a KA, I shall mark the same as Resolved. Thank You for posting the same for assisting fellow Community Members.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Smarak&lt;/P&gt;
&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2" target="_blank" rel="noopener"&gt;https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 08:39:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hbase-table-is-stuck-in-quot-Disabling-quot-state-Neither/m-p/313090#M225412</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2021-03-16T08:39:44Z</dc:date>
    </item>
  </channel>
</rss>

