@Override public synchronized void startAllServers(ServerType server) throws IOException { start(server, null); }
public void start(ServerType server) throws IOException { start(server, null); }
@Override public synchronized void start(ServerType server, String hostname) throws IOException { start(server, hostname, Collections.<String,String> emptyMap(), Integer.MAX_VALUE); }
@Test public void test() throws Exception { getCluster().getClusterControl().start(ServerType.MONITOR); final Connector c = getConnector(); final String tableName = getUniqueNames(1)[0];
Thread.sleep(5000); log.info("Restarting master"); mac.getClusterControl().start(ServerType.MASTER);
getCluster().getClusterControl().start(ServerType.TABLET_SERVER, null, ImmutableMap.of(Property.TSERV_CLIENTPORT.getKey(), "" + restartedServer.getPort(), Property.TSERV_PORTSEARCH.getKey(), "false"),
@Test(timeout = 2 * 60 * 1000) public void test() throws Exception { // not yet, please String tableName = getUniqueNames(1)[0]; cluster.getClusterControl().stop(ServerType.GARBAGE_COLLECTOR); Connector c = getConnector(); c.tableOperations().create(tableName); // count the number of WALs in the filesystem assertEquals(2, countWALsInFS(cluster)); cluster.getClusterControl().stop(ServerType.TABLET_SERVER); cluster.getClusterControl().start(ServerType.GARBAGE_COLLECTOR); cluster.getClusterControl().start(ServerType.TABLET_SERVER); Iterators.size(c.createScanner(MetadataTable.NAME, Authorizations.EMPTY).iterator()); // let GC run UtilWaitThread.sleep(3 * 5 * 1000); assertEquals(2, countWALsInFS(cluster)); }
cluster.getClusterControl().start(ServerType.TABLET_SERVER);
getCluster().getClusterControl().start(ServerType.TABLET_SERVER);