This is an automated email from the ASF dual-hosted git repository.

hexiaoqiao 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 054e1c5  HDFS-15932. Improve the balancer error message when process 
exits abnormally. Contributed by Renukaprasad C.
054e1c5 is described below

commit 054e1c5e83a45a12038355fd52d64e75b907168d
Author: He Xiaoqiao <hexiaoq...@apache.org>
AuthorDate: Wed Mar 31 12:22:53 2021 +0800

    HDFS-15932. Improve the balancer error message when process exits 
abnormally. Contributed by Renukaprasad C.
---
 hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh 
b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
index 4be554a..c4c3157 100755
--- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
+++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
@@ -2206,7 +2206,7 @@ function hadoop_daemon_handler
       hadoop_verify_logdir
       hadoop_status_daemon "${daemon_pidfile}"
       if [[ $? == 0  ]]; then
-        hadoop_error "${daemonname} is running as process $(cat 
"${daemon_pidfile}").  Stop it first."
+        hadoop_error "${daemonname} is running as process $(cat 
"${daemon_pidfile}").  Stop it first and ensure ${daemon_pidfile} file is empty 
before retry."
         exit 1
       else
         # stale pid file, so just remove it and continue on
@@ -2267,7 +2267,7 @@ function hadoop_secure_daemon_handler
       hadoop_verify_logdir
       hadoop_status_daemon "${daemon_pidfile}"
       if [[ $? == 0  ]]; then
-        hadoop_error "${daemonname} is running as process $(cat 
"${daemon_pidfile}").  Stop it first."
+        hadoop_error "${daemonname} is running as process $(cat 
"${daemon_pidfile}").  Stop it first and ensure ${daemon_pidfile} file is empty 
before retry."
         exit 1
       else
         # stale pid file, so just remove it and continue on

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to