From common-commits-return-98713-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Sun May 3 18:33:13 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id BC3BF180621 for ; Sun, 3 May 2020 20:33:12 +0200 (CEST) Received: (qmail 83605 invoked by uid 500); 3 May 2020 18:33:12 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 83596 invoked by uid 99); 3 May 2020 18:33:12 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 May 2020 18:33:12 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 8D8848BFAB; Sun, 3 May 2020 18:33:11 +0000 (UTC) Date: Sun, 03 May 2020 18:33:11 +0000 To: "common-commits@hadoop.apache.org" Subject: [hadoop] branch trunk updated: HDFS-15328. Use DFSConfigKeys MONITOR_CLASS_DEFAULT constant. Contributed by bianqi. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158853079132.26670.2379721374517012910@gitbox.apache.org> From: ayushsaxena@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: hadoop X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: d6fc482a541310d83d9cf1393e8f6ed220ef4c1e X-Git-Newrev: 8dace8ff3a921686c90934b76e5e9b24da34129b X-Git-Rev: 8dace8ff3a921686c90934b76e5e9b24da34129b X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org