clusterRead.setExternalMapReduce(advancedProperties
.get("ExternalMapReduce"));
clusterRead.setLocalRepoURL(advancedProperties.get("LocalRepoURL"));
}
SoftwareManager softMgr = null;
try {
softMgr =
softwareManagerCollector.getSoftwareManager(cluster
.getAppManager());
} catch (Exception e) {
logger.error("Failed to get softwareManger.");
// do not throw exception for exporting cluster info
}
List<NodeGroupRead> groupList = new ArrayList<NodeGroupRead>();
for (NodeGroupEntity group : cluster.getNodeGroups()) {
NodeGroupRead groupRead = group.toNodeGroupRead(ignoreObsoleteNode);
groupRead.setComputeOnly(false);
try {
groupRead.setComputeOnly(softMgr.isComputeOnlyRoles(groupRead
.getRoles()));
} catch (Exception e) {
}
groupList.add(groupRead);
}