Help Center/ MapReduce Service/ Component Operation Guide (LTS) (Ankara Region)/ Using HBase/ Common Issues About HBase/ What Should I Do If I Fail to Create Tables Due to the FAILED_OPEN State of Regions?
Updated on 2024-11-29 GMT+08:00

What Should I Do If I Fail to Create Tables Due to the FAILED_OPEN State of Regions?

Question

What should I do if I fail to create tables due to the FAILED_OPEN state of Regions?

Answer

If a network, HDFS, or Active HMaster fault occurs during the creation of tables, some Regions may fail to go online and therefore enter the FAILED_OPEN state. In this case, tables fail to be created.

The tables that fail to be created due to the preceding mentioned issue cannot be repaired. To solve this problem, perform the following operations to delete and re-create the tables:

  1. Run the following command on the cluster client to repair the state of the tables:

    hbase hbck -j ${CLIENT_HOME}/HBase/hbase/tools/hbase-hbck2-1.1.0-h0.cbu.mrs.*.jar setTableState <table_name> ENABLED

  2. Enter the HBase shell and run the following commands to delete the tables that fail to be created:

    disable '<table_name>'

    drop '<table_name>'

  3. Create the tables using the recreation command.