Package org.apache.hadoop.hbase

Examples of org.apache.hadoop.hbase.MiniHBaseCluster.abortRegionServer()


      metaHRS.getHServerInfo().getServerAddress(), hri, otherServerIndex);
    master.getRegionServerOperationQueue().
      registerRegionServerOperationListener(listener);
    try {
      // Now close the server carrying meta.
      cluster.abortRegionServer(metaIndex);

      // First wait on receipt of meta server shutdown message.
      while(!listener.metaShutdownReceived) Threads.sleep(100);
      while(!listener.isDone()) Threads.sleep(10);
      // We should not have retried the close more times than it took for the
View Full Code Here


      metaHRS.getHServerInfo().getServerAddress(), hri, otherServerIndex);
    master.getRegionServerOperationQueue().
      registerRegionServerOperationListener(listener);
    try {
      // Now close the server carrying meta.
      cluster.abortRegionServer(metaIndex);

      // First wait on receipt of meta server shutdown message.
      while(!listener.metaShutdownReceived) Threads.sleep(100);
      while(!listener.isDone()) Threads.sleep(10);
      // We should not have retried the close more times than it took for the
View Full Code Here

      rootHRS.getHServerInfo().getServerAddress());
    master.getRegionServerOperationQueue().
      registerRegionServerOperationListener(listener);
    try {
      // Now close the server carrying meta.
      cluster.abortRegionServer(rootIndex);

      // Wait for processing of the shutdown server.
      while(!listener.isDone()) Threads.sleep(100);
      master.getRegionManager().waitForRootRegionLocation();
    } finally {
View Full Code Here

    int srcServer = hBaseCluster.getServerWith(hRegion.getRegionName());
    int destServer = (srcServer == 1 ? 0 : 1);
    HRegionServer regionServer = hBaseCluster.getRegionServer(destServer);

    // Abort the regionserver
    hBaseCluster.abortRegionServer(srcServer);
    hBaseCluster.waitOnRegionServer(srcServer);

    boolean regionOnline =
        hBaseCluster.getMaster().getAssignmentManager()
            .isRegionAssigned(indexHRegion.getRegionInfo());
View Full Code Here

    for (Result result : scanner) {
      j++;
    }
    assertEquals("", i, j);

    hBaseCluster.abortRegionServer(serverWith);
    hBaseCluster.waitOnRegionServer(serverWith);

    boolean regionOnline =
        hBaseCluster.getMaster().getAssignmentManager()
            .isRegionAssigned(indexHRegion.getRegionInfo());
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.