public String getSupportedConfigs(HadoopStack stack) {
Map<String, Object> configs = new HashMap<String, Object>();
ApiStackServiceList apiStackServiceList = apiManager.getStackServiceListWithConfigurations(stack.getVendor(), stack.getFullVersion());
for (ApiStackService apiStackService : apiStackServiceList.getApiStackServices()) {
for (ApiConfiguration apiConfiguration : apiStackService.getApiConfigurations()) {
ApiConfigurationInfo apiConfigurationInfo = apiConfiguration.getApiConfigurationInfo();
String configType = apiConfigurationInfo.getType().split(".xml")[0];
String configProperty = apiConfigurationInfo.getPropertyName();
Set<String> configProperties = new HashSet<String>();
if (configs.isEmpty()) {
configProperties.add(configProperty);
} else {
if (configs.containsKey(configType)) {