瀏覽代碼

HDFS-15932. Improve the balancer error message when process exits abnormally. Contributed by Renukaprasad C.

He Xiaoqiao 4 年之前
父節點
當前提交
16d50f4bbf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh

+ 2 - 2
hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh

@@ -2183,7 +2183,7 @@ function hadoop_daemon_handler
       hadoop_verify_logdir
       hadoop_verify_logdir
       hadoop_status_daemon "${daemon_pidfile}"
       hadoop_status_daemon "${daemon_pidfile}"
       if [[ $? == 0  ]]; then
       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
         exit 1
       else
       else
         # stale pid file, so just remove it and continue on
         # stale pid file, so just remove it and continue on
@@ -2244,7 +2244,7 @@ function hadoop_secure_daemon_handler
       hadoop_verify_logdir
       hadoop_verify_logdir
       hadoop_status_daemon "${daemon_pidfile}"
       hadoop_status_daemon "${daemon_pidfile}"
       if [[ $? == 0  ]]; then
       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
         exit 1
       else
       else
         # stale pid file, so just remove it and continue on
         # stale pid file, so just remove it and continue on