150151152153154155156157158159160
ApplicationId id = null; ApplicationReport report = null; try { YarnLauncher launcher = new YarnLauncher(client, cfg); id = launcher.run(); report = client.getReport(id); } finally { client.close(); }