use of org.apache.accumulo.core.util.CachedConfiguration in project accumulo by apache.
the class StandaloneAccumuloCluster method getHadoopConfiguration.
public Configuration getHadoopConfiguration() {
String confDir = getHadoopConfDir();
// Using CachedConfiguration will make repeatedly calling this method much faster
final Configuration conf = CachedConfiguration.getInstance();
conf.addResource(new Path(confDir, "core-site.xml"));
// Need hdfs-site.xml for NN HA
conf.addResource(new Path(confDir, "hdfs-site.xml"));
return conf;
}
Aggregations