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

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

    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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              JiangRui jiangrui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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