private void publishModifiedExportGroups(Set<String> modifiedGroups) { for (String groupName : modifiedGroups) { Map<String, List<ExportEntry>> entries = this.exportGroups.get(groupName); // Publish in old format for the time being Map<String, String> simpleEntries = new HashMap<String, String>(); for (Map.Entry<String, List<ExportEntry>> entry : entries.entrySet()) { List<ExportEntry> exports = entry.getValue(); if (SliderUtils.isNotEmpty(exports)) { // there is no support for multiple exports per name - so extract only the first one simpleEntries.put(entry.getKey(), entry.getValue().get(0).getValue()); } } if (!getAmState().getAppConfSnapshot().getComponentOptBool( groupName, AgentKeys.AM_CONFIG_GENERATION, false)) { publishApplicationInstanceData(groupName, groupName, simpleEntries.entrySet()); } PublishedExports exports = new PublishedExports(groupName); exports.setUpdated(new Date().getTime()); exports.putValues(entries.entrySet()); getAmState().getPublishedExportsSet().put(groupName, exports); } }
private void publishModifiedExportGroups(Set<String> modifiedGroups) { for (String groupName : modifiedGroups) { Map<String, List<ExportEntry>> entries = this.exportGroups.get(groupName); // Publish in old format for the time being Map<String, String> simpleEntries = new HashMap<String, String>(); for (Map.Entry<String, List<ExportEntry>> entry : entries.entrySet()) { List<ExportEntry> exports = entry.getValue(); if (SliderUtils.isNotEmpty(exports)) { // there is no support for multiple exports per name - so extract only the first one simpleEntries.put(entry.getKey(), entry.getValue().get(0).getValue()); } } if (!getAmState().getAppConfSnapshot().getComponentOptBool( groupName, AgentKeys.AM_CONFIG_GENERATION, false)) { publishApplicationInstanceData(groupName, groupName, simpleEntries.entrySet()); } PublishedExports exports = new PublishedExports(groupName); exports.setUpdated(new Date().getTime()); exports.putValues(entries.entrySet()); getAmState().getPublishedExportsSet().put(groupName, exports); } }
boolean perComponent = appConf.getComponentOptBool(roleGroup, "conf." + configFile.getDictionaryName() + PER_COMPONENT, false); boolean perGroup = appConf.getComponentOptBool(roleGroup, "conf." + configFile.getDictionaryName() + PER_GROUP, false);
boolean perComponent = appConf.getComponentOptBool(roleGroup, "conf." + configFile.getDictionaryName() + PER_COMPONENT, false); boolean perGroup = appConf.getComponentOptBool(roleGroup, "conf." + configFile.getDictionaryName() + PER_GROUP, false);
!getAmState().getAppConfSnapshot().getComponentOptBool( componentGroup, AgentKeys.AM_CONFIG_GENERATION, false)) {
!getAmState().getAppConfSnapshot().getComponentOptBool( componentGroup, AgentKeys.AM_CONFIG_GENERATION, false)) {
capability.setMemory(ram); log.debug("Component {} has RAM={}, vCores ={}", name, ram, cores); boolean normalize = resources.getComponentOptBool(group, YARN_RESOURCE_NORMALIZATION_ENABLED, true); if (!normalize) {
capability.setMemory(ram); log.debug("Component {} has RAM={}, vCores ={}", name, ram, cores); boolean normalize = resources.getComponentOptBool(group, YARN_RESOURCE_NORMALIZATION_ENABLED, true); if (!normalize) {