Package org.apache.hadoop.hdfs.server.balancer.Balancer

Examples of org.apache.hadoop.hdfs.server.balancer.Balancer.BalancerBlock.addLocation()


    int id = 0;
    for (int locationsNum : replicas) {
      BalancerBlock block = new BalancerBlock(new Block(id, 5, id));
      id++;
      for (int i = 0; i < locationsNum; i++) {
        block.addLocation(new Balancer.Target(new DatanodeInfo(), 30));
      }
      srcBlockList.add(block);
    }
    Arrays.sort(replicas);
    int i = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.