如何获得HBASE中处于FAILED_OPEN状态的区域? [英] How to get the region in HBASE which is struck in FAILED_OPEN state?

查看:788
本文介绍了如何获得HBASE中处于FAILED_OPEN状态的区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hbase hbck成功运行,并且没有任何不一致,但是在过渡状态(三个状态中有两个处于CLOSED状态并且1个处于FAILED_OPEN)状态的三个区域中. (所有三个区域都是一个表的一部分)

由于HBASE处于一致状态,所以Hbase操作没有问题,但是由于区域处于过渡状态,所以我无法运行均衡器.

如何删除/移出这些区域.

我在发布此问题之前尝试了以下命令.

hbase hbck <Table_Name>
hbase hack -fix <Table_Name>
hbase hack -repair <Table_Name>
hbase hbck -fixHdfsHoles -fixHdfsOrphans <Table_Name>

这些区域名称上也没有目录

enter code here
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep de0efd872dc4b3dca6929213f4fbe582
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep ab6a101fb92de7150562664ca841ac0d
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep 068a2b30ada2b9a2958b3815b7f32dfc

解决方案

我能够通过删除与使用zkCli.sh触及的特定区域相关的节点来解决该问题.

[zkshell:6]删除/hbase-unsecure/trans-transition/name_of_the_region_which_has_strck

然后我重新启动了hMaster(因为我们为HMaster设置了HA,所以没有任何影响).

当我运行sudo -u hbase hbase hack时,一切都很好且一致.

Hbase hbck runs successfully and there is no inconsistency, but out of three regions which struck in transition state ( 2 out of 3 is in CLOSED state and 1 is in FAILED_OPEN) state. ( all three regions are part of one single Table)

Since HBASE is in consistent state , there is no issue in Hbase operation, but I am not able to run balancer since regions struck in Transition state.

How to remove/move these regions out of transition.

I tried below command before posting this question.

hbase hbck <Table_Name>
hbase hack -fix <Table_Name>
hbase hack -repair <Table_Name>
hbase hbck -fixHdfsHoles -fixHdfsOrphans <Table_Name>

Also there is no directory on these region names

enter code here
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep de0efd872dc4b3dca6929213f4fbe582
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep ab6a101fb92de7150562664ca841ac0d
 hdfs dfs -ls /hbase/data/default/<Table_name> | grep 068a2b30ada2b9a2958b3815b7f32dfc

解决方案

I was able to solve the problem by deleting the nodes related to those particular regions which are struck using zkCli.sh

[zkshell: 6] delete /hbase-unsecure/region-in-transition/name_of_the_region_which_has_strck

Then I have restarted the hMaster ( there was no impact since we have HA setup for HMaster).

When I ran sudo -u hbase hbase hack , everything is fine and consistent.

这篇关于如何获得HBASE中处于FAILED_OPEN状态的区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆