HDFS-16218. Use HdfsConfiguration for passing in Router principal (#3444)
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
2d479309cc
commit
4d21655d04
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user