253254255256257258259260261262263
// Give the cluster time to stop the whole cluster. AbstractDaemonClient cli = cluster.getJTClient(); int i = 1; while (i < 40) { try { cli.ping(); Thread.sleep(1000); i++; } catch (Exception e) { break; }
284285286287288289290291292293294
cluster.start(); cli = cluster.getJTClient(); i = 1; while (i < 40) { try { cli.ping(); break; } catch (Exception e) { i++; Thread.sleep(1000); LOG.info("Waiting for Jobtracker on host : "
255256257258259260261262263264265
286287288289290291292293294295296
257258259260261262263264265266267
288289290291292293294295296297298
259260261262263264265266267268269
290291292293294295296297298299300