HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT constant. Contributed by bianqi.

This commit is contained in:
Ayush Saxena 2020-05-03 23:59:17 +05:30
parent d6fc482a54
commit 8dace8ff3a
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ public class DatanodeAdminManager {
try {
cls = conf.getClass(
DFSConfigKeys.DFS_NAMENODE_DECOMMISSION_MONITOR_CLASS,
DatanodeAdminDefaultMonitor.class);
Class.forName(DFSConfigKeys
.DFS_NAMENODE_DECOMMISSION_MONITOR_CLASS_DEFAULT));
monitor =
(DatanodeAdminMonitorInterface)ReflectionUtils.newInstance(cls, conf);
monitor.setBlockManager(blockManager);