- 原型下载:hbase balancer.ep
<dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase</artifactId> <version>0.94.8</version> </dependency>
HBase balancer
- 控制balancer开启或关闭,以及手动执行balancer
HBaseConfiguration conf = HBaseConfiguration.create(); conf.set(HConstants.ZOOKEEPER_QUORUM, zkServer); HBaseAdmin admin = new HBaseAdmin(conf); admin.balancer(); //执行balancer admin.setBalancerRunning(on, true); //on = true打开,反之off
- 图示:balancer-simple
HBase region移动(HotRegion管理)
- 实现手工移动region到其他节点上的功能
HBaseConfiguration conf = HBaseConfiguration.create(); conf.set(HConstants.ZOOKEEPER_QUORUM, zkServer); HBaseAdmin admin = new HBaseAdmin(conf); admin.move(regionName.getBytes(), serverName.getBytes());
- 图示:table-payload
Ella: HBase Cluster Monitor on Region,Table,Server Level.
https://github.com/mayanhui/ella
?
?
?