AmbariCluster cluster = ambariClient.getCluster(clusterInfo);
Map<String, String> coreSiteConfigs = ambariClient.getConfiguration(
clusterInfo, "core-site", cluster.getDesiredConfigs()
.get("core-site"));
String hdfsLocation = coreSiteConfigs.get("fs.defaultFS");
final ActionCreateArgs createArgs = new ActionCreateArgs();
createArgs.template = appConfigJsonFile;
createArgs.resources = resourcesJsonFile;
createArgs.image = new Path(hdfsLocation
+ "/slider/agent/slider-agent.tar.gz");