<?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 Tables not online in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Tables-not-online/m-p/399262#M250460</link>
    <description>&lt;P&gt;We're still facing issues with RIT, and now there's an additional frustrating problem: several tables are not coming online.&lt;/P&gt;&lt;P&gt;In the HBase meta table, the state is set to "\x08\x02", which indicates the table is "DISABLING" The region state is CLOSED, but modifying these states hasn't resolved the issue.&lt;/P&gt;&lt;P&gt;I've tried addressing this by using put statements and the hbck2 tool, but the problem persists. The current HBase version is 2.0.2.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 08:28:48 GMT</pubDate>
    <dc:creator>MrNicen</dc:creator>
    <dc:date>2024-12-23T08:28:48Z</dc:date>
    <item>
      <title>Tables not online</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tables-not-online/m-p/399262#M250460</link>
      <description>&lt;P&gt;We're still facing issues with RIT, and now there's an additional frustrating problem: several tables are not coming online.&lt;/P&gt;&lt;P&gt;In the HBase meta table, the state is set to "\x08\x02", which indicates the table is "DISABLING" The region state is CLOSED, but modifying these states hasn't resolved the issue.&lt;/P&gt;&lt;P&gt;I've tried addressing this by using put statements and the hbck2 tool, but the problem persists. The current HBase version is 2.0.2.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 08:28:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tables-not-online/m-p/399262#M250460</guid>
      <dc:creator>MrNicen</dc:creator>
      <dc:date>2024-12-23T08:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tables not online</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tables-not-online/m-p/399460#M250492</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110430"&gt;@MrNicen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="whitespace-pre-wrap break-words"&gt;This is a very common problem where the table gets stuck in a DISABLING state.&lt;/P&gt;&lt;P class="whitespace-pre-wrap break-words"&gt;First, please try these&amp;nbsp; series of diagnostic and repair steps:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;First, verify the current state:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;echo&lt;/SPAN&gt; &lt;SPAN class="token"&gt;"scan 'hbase:meta'"&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|&lt;/SPAN&gt; hbase shell&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;OL class=""&gt;&lt;LI&gt;Try to force the table state change using HBCK2:&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class="relative flex flex-col rounded-lg"&gt;&lt;DIV class="code-block__code !my-0 !rounded-lg !text-sm !leading-relaxed"&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Set table to ENABLED state&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;hbase hbck -j ./hbase-hbck2-2.0.2.jar setTableState &lt;SPAN class="token"&gt;&amp;lt;&lt;/SPAN&gt;table_name&lt;SPAN class="token"&gt;&amp;gt;&lt;/SPAN&gt; ENABLED&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="token"&gt;# Download HBCK2 if not already present&lt;/SPAN&gt; &lt;SPAN class="token"&gt;wget&lt;/SPAN&gt; &lt;A href="https://repository.apache.org/content/repositories/releases/org/apache/hbase/hbase-hbck2/2.0.2/hbase-hbck2-2.0.2.jar" target="_blank" rel="noopener"&gt;https://repository.apache.org/content/repositories/releases/org/apache/hbase/hbase-hbck2/2.0.2/hbase-hbck2-2.0.2.jar&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;If that doesn't work, try cleaning the znode:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Connect to ZooKeeper&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./zkCli.sh -server localhost:2181 &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Check the table znode&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;ls&lt;/SPAN&gt; /hbase/table/&lt;SPAN class="token"&gt;&amp;lt;&lt;/SPAN&gt;table_name&lt;SPAN class="token"&gt;&amp;gt;&lt;BR /&gt;# Delete the table znode if present rmr /hbase/table/&amp;lt;table_name&amp;gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;OL class=""&gt;&lt;LI&gt;If the issue persists, try manually updating the meta table:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;hbase shell &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Disable table&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;disable &lt;SPAN class="token"&gt;'&amp;lt;table_name&amp;gt;'&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Wait a few seconds, then enable&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;enable&lt;/SPAN&gt; &lt;SPAN class="token"&gt;'&amp;lt;table_name&amp;gt;'&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# If that fails, try force disable&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;disable_all &lt;SPAN class="token"&gt;'&amp;lt;table_name&amp;gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;OL class=""&gt;&lt;LI&gt;If still stuck, try these repair commands:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Clear the META table state&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;echo&lt;/SPAN&gt; &lt;SPAN class="token"&gt;"put 'hbase:meta', '&amp;lt;table_name&amp;gt;', 'table:state', '&lt;/SPAN&gt;&lt;SPAN class="token"&gt;\x08&lt;/SPAN&gt;&lt;SPAN class="token"&gt;\x00&lt;/SPAN&gt;&lt;SPAN class="token"&gt;'"&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|&lt;/SPAN&gt; hbase shell &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Recreate the regions&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;hbase hbck -j ./hbase-hbck2-2.0.2.jar assigns &lt;SPAN class="token"&gt;&amp;lt;&lt;/SPAN&gt;table_name&lt;SPAN class="token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;OL class=""&gt;&lt;LI&gt;As a last resort, try a full cleanup:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Stop HBase&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./bin/stop-hbase.sh &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Clear ZooKeeper data&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./zkCli.sh -server localhost:2181 &lt;/SPAN&gt;&lt;SPAN&gt;rmr /hbase &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Remove the META directory&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;rm&lt;/SPAN&gt; -rf /hbase/data/hbase/meta &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Start HBase&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./bin/start-hbase.sh &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Recreate the table structure&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;hbase shell &lt;/SPAN&gt;&lt;SPAN&gt;create &lt;SPAN class="token"&gt;'&amp;lt;table_name&amp;gt;'&lt;/SPAN&gt;, &lt;SPAN class="token"&gt;{&lt;/SPAN&gt;NAME &lt;SPAN class="token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="token"&gt;'cf'&lt;/SPAN&gt;&lt;SPAN class="token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token"&gt;# Adjust column families as needed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;If none of these steps work, we can try a more aggressive approach:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Back up your data:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot &lt;SPAN class="token"&gt;&amp;lt;&lt;/SPAN&gt;snapshot_name&lt;SPAN class="token"&gt;&amp;gt;&lt;/SPAN&gt; -copy-to hdfs://backup-cluster/hbase&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Try a clean META rebuild:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Stop HBase&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./bin/stop-hbase.sh &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Clear META&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;rm&lt;/SPAN&gt; -rf /hbase/data/default/hbase/meta &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Start HBase in repair mode&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;env&lt;/SPAN&gt; &lt;SPAN class="token assign-left"&gt;HBASE_OPTS&lt;/SPAN&gt;&lt;SPAN class="token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token"&gt;"-XX:+UseParNewGC -XX:+UseConcMarkSweepGC"&lt;/SPAN&gt; ./bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;# Start HBase normally&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;./bin/start-hbase.sh&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Additional troubleshooting tips:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Check HBase logs for specific errors:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;tail&lt;/SPAN&gt; -f /var/log/hbase/hbase-master.log&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Verify cluster health:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;hbase hbck -details&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;OL class=""&gt;&lt;LI&gt;Monitor region transitions:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-SPOILER&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;echo&lt;/SPAN&gt; &lt;SPAN class="token"&gt;"scan 'hbase:meta', {COLUMNS =&amp;gt; 'info:regioninfo'}"&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|&lt;/SPAN&gt; hbase shell&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;If you encounter any specific errors during these steps, please share them and I can provide more targeted solutions.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 17:49:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tables-not-online/m-p/399460#M250492</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2024-12-31T17:49:59Z</dc:date>
    </item>
  </channel>
</rss>

