diff --git a/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java b/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java index ed1775cbdb0..1196bd2152e 100644 --- a/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java +++ b/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java @@ -39,6 +39,7 @@ import org.apache.commons.configuration2.MapConfiguration; import org.apache.commons.configuration2.PropertiesConfiguration; import org.apache.commons.configuration2.ex.ConfigurationException; +import org.apache.commons.configuration2.io.FileHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -211,8 +212,9 @@ private SiteConfiguration(Map config) { private static AbstractConfiguration getPropsFileConfig(URL accumuloPropsLocation) { var config = new PropertiesConfiguration(); if (accumuloPropsLocation != null) { + var fileHandler = new FileHandler(config); try (var reader = new InputStreamReader(accumuloPropsLocation.openStream(), UTF_8)) { - config.read(reader); + fileHandler.load(reader); } catch (ConfigurationException | IOException e) { throw new IllegalArgumentException(e); }