cfg.containersToAllocate(), (cfg.containersToAllocate() > 1 ? "nodes" : "node"), id, report.getTrackingUrl(), report.getStartTime()));
}
private void stop() {
ClientRpc client = new ClientRpc(getConf());
client.start();
try {
List<ApplicationReport> esApps = client.listEsClustersAlive();
for (ApplicationReport report : esApps) {
System.out.println(String.format("Stopping Elasticsearch-YARN Cluster with id %s", report.getApplicationId()));
}