HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT constant. Contributed by bianqi.
This commit is contained in:
parent
d6fc482a54
commit
8dace8ff3a
|
@ -138,7 +138,8 @@ public class DatanodeAdminManager {
|
||||||
try {
|
try {
|
||||||
cls = conf.getClass(
|
cls = conf.getClass(
|
||||||
DFSConfigKeys.DFS_NAMENODE_DECOMMISSION_MONITOR_CLASS,
|
DFSConfigKeys.DFS_NAMENODE_DECOMMISSION_MONITOR_CLASS,
|
||||||
DatanodeAdminDefaultMonitor.class);
|
Class.forName(DFSConfigKeys
|
||||||
|
.DFS_NAMENODE_DECOMMISSION_MONITOR_CLASS_DEFAULT));
|
||||||
monitor =
|
monitor =
|
||||||
(DatanodeAdminMonitorInterface)ReflectionUtils.newInstance(cls, conf);
|
(DatanodeAdminMonitorInterface)ReflectionUtils.newInstance(cls, conf);
|
||||||
monitor.setBlockManager(blockManager);
|
monitor.setBlockManager(blockManager);
|
||||||
|
|
Loading…
Reference in New Issue