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

View File

@ -138,7 +138,8 @@ void activate(Configuration conf) {
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);