How to Solve HBase error: region is not online

Error information:

2021-06-15 10:55:33.721 ERROR 531 --- [io-8022-exec-33]  : Table Get batch error the connection is exception: Failed after attempts=1, exceptions:
Tue Jun 15 10:55:33 CST 2021, RpcRetryingCaller{globalStartTime=1623725733712, pause=200, retries=1}, org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region rpt_ewt_theme_xxxx_compare_1d_b,348788221_122887872,1623446719723.ebb056cf4a332e5efa355bd2619033c5. is not online on hadoop17,60020,1620193917454
    at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(
    at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(
    at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(
    at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(
    at org.apache.hadoop.hbase.ipc.RpcExecutor$
    at org.apache.hadoop.hbase.ipc.RpcExecutor$


When HBase is running, the region will start to split when it reaches the set file size. The process of division is as follows:

1) The old region is offline, which corresponds to is not online in the error log

2) Old region split

3) When the old region is closed, this corresponds to the error in the error log   is closing

Solution: turn off automatic splitting and split artificially.

Or set the value of a single region file to uppercase

Read More: