Profile hadoop = version.getRequiredProfile("hadoop");
Map<String, Map<String, String>> configs;
String versionId = version.getId();
ProfileBuilder builder = ProfileBuilder.Factory.create(versionId, "hadoop-" + name);
builder.addParent(hadoop.getId());
configs = new HashMap<String, Map<String, String>>();
configs.put("io.fabric8.hadoop", new HashMap<String, String>());
configs.get("io.fabric8.hadoop").put("fs.default.name", "hdfs://${zk:" + nameNode + "/ip}:9000");
configs.get("io.fabric8.hadoop").put("dfs.http.address", "hdfs://${zk:" + nameNode + "/ip}:9002");
Profile cluster = profileService.createProfile(builder.setConfigurations(configs).getProfile());