This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8dace8f HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT
constant. Contributed by bianqi.
8dace8f is described below
commit 8dace8ff3a921686c90934b76e5e9b24da34129b
Author: Ayush Saxena <[email protected]>
AuthorDate: Sun May 3 23:59:17 2020 +0530
HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT constant. Contributed
by bianqi.
---
.../hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java
index 0771c28..8841d99 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]