HDFS-16218. Use HdfsConfiguration for passing in Router principal (#3444)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
lfengnan 2021-09-15 22:58:02 -07:00 committed by GitHub
parent 2d479309cc
commit 4d21655d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import org.apache.commons.cli.HelpFormatter;
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 @@ public class RouterFedBalance extends Configured implements Tool {
*/
@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;