We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c02f21 commit d9d95b4Copy full SHA for d9d95b4
hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
@@ -2192,6 +2192,13 @@ function hadoop_daemon_handler
2192
case ${daemonmode} in
2193
status)
2194
hadoop_status_daemon "${daemon_pidfile}"
2195
+ if [[ $? == 0 ]]; then
2196
+ echo "${daemonname} is running as process $(cat "${daemon_pidfile}")."
2197
+ elif [[ $? == 1 ]]; then
2198
+ echo "${daemonname} is stopped."
2199
+ else
2200
+ hadoop_error "hadoop_status_daemon error."
2201
+ fi
2202
exit $?
2203
;;
2204
0 commit comments