Examples of countOfRegionServers()


Examples of org.apache.hadoop.hbase.master.ServerManager.countOfRegionServers()

      // doing the below hbase:meta daughters fixup.
      Set<HRegionInfo> hris = null;
      try {
        server.getMetaTableLocator().waitMetaRegionLocation(server.getZooKeeper());
        if (BaseLoadBalancer.tablesOnMaster(server.getConfiguration())) {
          while (!this.server.isStopped() && serverManager.countOfRegionServers() < 2) {
            // Wait till at least another regionserver is up besides the active master
            // so that we don't assign all regions to the active master.
            // This is best of efforts, because newly joined regionserver
            // could crash right after that.
            Thread.sleep(100);
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.