HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT constant. Contributed by bianqi.
This commit is contained in:
parent
d6fc482a54
commit
8dace8ff3a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user