Skip to content

Commit b69ac57

Browse files
committed
HDFS-14772. RBF: hdfs-rbf-site.xml can't be loaded automatically. Contributed by Yuxuan Wang
1 parent 4379370 commit b69ac57

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/HdfsConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class HdfsConfiguration extends Configuration {
3737
Configuration.addDefaultResource("hdfs-default.xml");
3838
Configuration.addDefaultResource("hdfs-rbf-default.xml");
3939
Configuration.addDefaultResource("hdfs-site.xml");
40+
Configuration.addDefaultResource("hdfs-rbf-site.xml");
4041
}
4142

4243
public HdfsConfiguration() {

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RBFConfigKeys.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package org.apache.hadoop.hdfs.server.federation.router;
2020

2121
import org.apache.hadoop.classification.InterfaceAudience;
22-
import org.apache.hadoop.conf.Configuration;
2322
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
2423
import org.apache.hadoop.hdfs.server.federation.metrics.FederationRPCPerformanceMonitor;
2524
import org.apache.hadoop.hdfs.server.federation.resolver.ActiveNamenodeResolver;
@@ -40,12 +39,6 @@
4039
@InterfaceAudience.Private
4140
public class RBFConfigKeys extends CommonConfigurationKeysPublic {
4241

43-
public static final String HDFS_RBF_SITE_XML = "hdfs-rbf-site.xml";
44-
45-
static {
46-
Configuration.addDefaultResource(HDFS_RBF_SITE_XML);
47-
}
48-
4942
// HDFS Router-based federation
5043
public static final String FEDERATION_ROUTER_PREFIX =
5144
"dfs.federation.router.";

0 commit comments

Comments
 (0)