Search in sources :

Example 1 with DefaultLoadBalancer

use of org.apache.accumulo.server.master.balancer.DefaultLoadBalancer in project accumulo by apache.

the class MasterClientServiceHandler method updatePlugins.

private void updatePlugins(String property) {
    if (property.equals(Property.MASTER_TABLET_BALANCER.getKey())) {
        AccumuloConfiguration conf = master.getConfiguration();
        TabletBalancer balancer = Property.createInstanceFromPropertyName(conf, Property.MASTER_TABLET_BALANCER, TabletBalancer.class, new DefaultLoadBalancer());
        balancer.init(master);
        master.tabletBalancer = balancer;
        log.info("tablet balancer changed to {}", master.tabletBalancer.getClass().getName());
    }
}
Also used : TabletBalancer(org.apache.accumulo.server.master.balancer.TabletBalancer) DefaultLoadBalancer(org.apache.accumulo.server.master.balancer.DefaultLoadBalancer) AccumuloConfiguration(org.apache.accumulo.core.conf.AccumuloConfiguration)

Aggregations

AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)1 DefaultLoadBalancer (org.apache.accumulo.server.master.balancer.DefaultLoadBalancer)1 TabletBalancer (org.apache.accumulo.server.master.balancer.TabletBalancer)1