IronfanStack stack) {
String packagesExistStatus = stack.getPackagesExistStatus();
clusterConfig.setPackagesExistStatus(packagesExistStatus);
switch (packagesExistStatus) {
case "TARBALL":
HadoopDistroMap map = new HadoopDistroMap();
Map<String, String> distroMap = stack.getHadoopDistroMap();
map.setHadoopUrl(distroMap.get("HadoopUrl"));
map.setHiveUrl(distroMap.get("HiveUrl"));
map.setPigUrl(distroMap.get("PigUrl"));
map.setHbaseUrl(distroMap.get("HbaseUrl"));
map.setZookeeperUrl(distroMap.get("ZookeeperUrl"));
clusterConfig.setDistroMap(map);
break;
case "REPO":
clusterConfig.setPackageRepos(stack.getPackageRepos());
break;