From ae3e8c61ff4c926ef3e71c782433ed9764d21478 Mon Sep 17 00:00:00 2001 From: Harsh J Date: Mon, 30 Mar 2015 15:21:18 +0530 Subject: [PATCH] HDFS-4396. Add START_MSG/SHUTDOWN_MSG for ZKFC. Contributed by Liang Xie. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/tools/DFSZKFailoverController.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 9b1cc3e763d..f437ad8cad9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -323,6 +323,9 @@ Release 2.8.0 - UNRELEASED IMPROVEMENTS + HDFS-4396. Add START_MSG/SHUTDOWN_MSG for ZKFC + (Liang Xie via harsh) + HDFS-7875. Improve log message when wrong value configured for dfs.datanode.failed.volumes.tolerated. (nijel via harsh) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSZKFailoverController.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSZKFailoverController.java index 85f77f1b7d1..4e256a21747 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSZKFailoverController.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSZKFailoverController.java @@ -167,6 +167,8 @@ public class DFSZKFailoverController extends ZKFailoverController { public static void main(String args[]) throws Exception { + StringUtils.startupShutdownMessage(DFSZKFailoverController.class, + args, LOG); if (DFSUtil.parseHelpArgument(args, ZKFailoverController.USAGE, System.out, true)) { System.exit(0);