Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18348

Echo java process's parent pid to the pid file intermediate state

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            JiangRui jiangrui

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment