1、问题解析

在执行Region Split时,因为系统中断或者HDFS中的Region文件已经被删除。

Region的状态由master跟踪,包括以下状态:

State

Description

Offline

Region is offline

Pending Open

A request to open the region was sent to the server

Opening

The server has started opening the region

Open

The region is open and is fully operational

Pending Close

A request to close the region has been sent to the server

Closing

The server has started closing the region

Closed

The region is closed

Splitting

The server started splitting the region

Split

The region has been split by the serve

 Region在这些状态之间的迁移(transition)可以由master引发,也可以由region server引发。

2、解决方案

         2.1 使用 hbase hbck 找到哪些Region出现Error

         2.2 使用以下命令将失效的Region删除

deleteall "hbase:meta","TestTable,00000000000000000005850000,1588444012555.89e1c07384a56c77761e490ae3f34a8d."

         2.3  重启hbase即可

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐