public static class ForceBalancerAction extends Action {
@Override
public void perform() throws Exception {
LOG.info("Balancing regions");
HBaseAdmin admin = this.context.getHBaseIntegrationTestingUtility().getHBaseAdmin();
boolean result = admin.balancer();
if (!result) {
LOG.error("Balancer didn't succeed");
}
}
}