use of org.apache.ambari.api.model.ApiConfigFile in project tbd-studio-se by Talend.
the class HadoopAmbariClusterService method init.
private void init(List<String> blacklistParams) {
confs = new HashMap<>();
for (ApiConfigFile file : configFiles) {
String type = file.getType();
if (!type.endsWith(SUPPORT_FILE)) {
continue;
}
Configuration conf = new Configuration(false);
Map<String, String> properties = file.getProperties();
for (String key : properties.keySet()) {
if (blacklistParams != null && blacklistParams.contains(key)) {
continue;
}
conf.set(key, properties.get(key));
}
confs.put(type, conf);
}
}
Aggregations