jiangrui created HADOOP-18348: --------------------------------- Summary: echo java process's parent pid to the pid file intermediate state Key: HADOOP-18348 URL: https://issues.apache.org/jira/browse/HADOOP-18348 Project: Hadoop Common Issue Type: Bug Components: common Reporter: jiangrui
In hadoop-function.sh file,there is hadoop_start_daemon and hadoop_start_daemon_wrapper functions. hadoop_start_daemon_wrapper invoke hadoop_start_daemon and put it to background. In hadoop_start_daemon function, echo $$ > pidfile,cause this scenario because hadoop_start_daemon is in a subshell by ampersand, and $ expands to the process ID of the current shell, not the subshell. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org