SetGoalState.main(new String[]{MasterGoalState.NORMAL.name()});
Process exec = Runtime.getRuntime().exec(new String[]{System.getenv().get("ACCUMULO_HOME") + "/bin/start-all.sh"});
exec.waitFor();
while (true) {
try {
Client client = MasterClient.getConnection(HdfsZooInstance.getInstance());
MasterMonitorInfo masterStats = client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
if (!masterStats.tServerInfo.isEmpty())
break;
} catch (Exception ex) {
UtilWaitThread.sleep(1000);
}