3334353637383940414243
ApplicationMasterService service = new ApplicationMasterServiceImpl(params, getConf()); service.startAndWait(); while (service.hasRunningContainers()) { Thread.sleep(1000); } service.stopAndWait(); return 0; } public static void main(String[] args) throws Exception { try {