From 4d21655d04d1b488fe37e908d75f833c1aa66b01 Mon Sep 17 00:00:00 2001 From: lfengnan Date: Wed, 15 Sep 2021 22:58:02 -0700 Subject: [PATCH] HDFS-16218. Use HdfsConfiguration for passing in Router principal (#3444) Signed-off-by: Akira Ajisaka --- .../org/apache/hadoop/hdfs/rbfbalance/RouterFedBalance.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/rbfbalance/RouterFedBalance.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/rbfbalance/RouterFedBalance.java index f99a2f18e2..3ed45f8482 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/rbfbalance/RouterFedBalance.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/rbfbalance/RouterFedBalance.java @@ -24,6 +24,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hdfs.HdfsConfiguration; import org.apache.hadoop.hdfs.server.federation.resolver.MountTableManager; import org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys; import org.apache.hadoop.hdfs.server.federation.router.RouterClient; @@ -356,7 +357,7 @@ private void printUsage() { */ @VisibleForTesting static Configuration getDefaultConf() { - Configuration config = new Configuration(); + Configuration config = new HdfsConfiguration(); config.addResource(FED_BALANCE_DEFAULT_XML); config.addResource(FED_BALANCE_SITE_XML); return config;