Examples of killRegionServer()


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

        assertTrue(am.waitForAssignment(hri));
        RegionState state = regionStates.getRegionState(hri);
        ServerName oldServerName = state.getServerName();
        if (!ServerName.isSameHostnameAndPort(oldServerName, metaServer)) {
          // Kill the hosting server, which doesn't have meta on it.
          cluster.killRegionServer(oldServerName);
          cluster.waitForRegionServerToStop(oldServerName, -1);
          break;
        }
        int i = cluster.getServerWithMeta();
        HRegionServer rs = cluster.getRegionServer(i == 0 ? 1 : 0);
View Full Code Here

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

          metaState.getState(), RegionState.State.OPEN);
      assertNotEquals("Meta should be moved off master",
        metaState.getServerName(), master.getServerName());
      assertEquals("Meta should be on the meta server",
        metaState.getServerName(), metaServerName);
      cluster.killRegionServer(metaServerName);
      stoppedARegionServer = true;
      cluster.waitForRegionServerToStop(metaServerName, 60000);

      // Wait for SSH to finish
      final ServerName oldServerName = metaServerName;
View Full Code Here

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

        assertTrue(am.waitForAssignment(hri));
        RegionState state = regionStates.getRegionState(hri);
        ServerName oldServerName = state.getServerName();
        if (!ServerName.isSameHostnameAndPort(oldServerName, metaServer)) {
          // Kill the hosting server, which doesn't have meta on it.
          cluster.killRegionServer(oldServerName);
          cluster.waitForRegionServerToStop(oldServerName, -1);
          break;
        }
        int i = cluster.getServerWithMeta();
        HRegionServer rs = cluster.getRegionServer(i == 0 ? 1 : 0);
View Full Code Here

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

      HRegionServer rs = TEST_UTIL.getRSForFirstRegionInTable(table);
      assertNotNull("First region should be assigned", rs);
      final ServerName serverName = rs.getServerName();
      // Wait till SSH tried to assign regions a several times
      int counter = MyLoadBalancer.counter.get() + 5;
      cluster.killRegionServer(serverName);
      startAServer = true;
      cluster.waitForRegionServerToStop(serverName, -1);
      while (counter > MyLoadBalancer.counter.get()) {
        Thread.sleep(1000);
      }
View Full Code Here

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

      // The region should be moved to offline since the server is dead
      RegionState state = regionStates.getRegionState(hri);
      assertTrue(state.isOffline());

      // Kill the hosting server, which doesn't have meta on it.
      cluster.killRegionServer(oldServerName);
      cluster.waitForRegionServerToStop(oldServerName, -1);

      ServerManager serverManager = master.getServerManager();
      while (!serverManager.isServerDead(oldServerName)
          || serverManager.getDeadServers().areDeadServersInProgress()) {
View Full Code Here

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

      // Disable the table now.
      master.disableTable(hri.getTable());

      // Kill the hosting server, which doesn't have meta on it.
      cluster.killRegionServer(oldServerName);
      cluster.waitForRegionServerToStop(oldServerName, -1);

      ServerManager serverManager = master.getServerManager();
      while (!serverManager.isServerDead(oldServerName)
          || serverManager.getDeadServers().areDeadServersInProgress()) {
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.