开发者社区> 问答> 正文

hbase2.0 怎么平衡各个regionserver的region数量啊

通过设置balance_switch true不起作用,region server重启后,分配到的region一直是0

展开
收起
hbase小能手 2018-11-06 16:54:16 4117 0
3 条回答
写回答
取消 提交回答
  • 遇到了一模一样的问题,请问后面是怎么解决的呢,谢谢

    2019-08-13 22:49:36
    赞同 展开评论 打赏
  • balance_switch强制将balance状态改为false,参考http://hbase.group/question/98

    2019-07-17 23:12:28
    赞同 展开评论 打赏
  • 社区管理员

    balance_switch设置成true,然后balancer。
    其实balance_switch设置成true就应该定时执行balance了,但是之前一直rit,所以没有执行成功,解决rit后就好了。

    Trigger the cluster balancer. Returns true if balancer ran and was able to
    tell the region servers to unassign all the regions to balance (the re-assignment itself is async).
    Otherwise false (Will not run if regions in transition).

    2019-07-17 23:12:28
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
HBase 吞吐量提升实践 立即下载
HBase应用与发展之HBase RowKey与索引设计 立即下载
HBase中Coprocessor的介绍以及实际业务场景中的使用 立即下载