1、问题描述:
hbase在使用过程中,后来创建了两个表,跑任务的时候,出现下面图片中的问题:region in transition
解决方案:
1、首先执行 hbase hbck -repair 修复指令,但是没有效果。然后想把出错的两个表给删除。但是发现怎么也删不掉,没办法,只有强制删除。
2、强制删除,首先找到hdfs上该表所在的位置,然后删除。
3、这时候,还要找到zk上的hbase中该表的节点位置,然后删除,否则当你在创建的 时候可能会报该表依然存在的问题
4、然后再执行修复指令
[hadoop@namenode2 ~]$ hbase hbck -repair
几分钟后可以看到region in transition的问题已经没有了。
5、最后你可能遇到下面的负载均衡的问题
The Load Balancer is not enabled which will eventually cause performance degradation in HBase as Regions will not be distributed across all RegionServers. The balancer is only expected to be disabled during rolling upgrade scenarios.
解决方案: