Hadoop Common
  1. Hadoop Common
  2. HADOOP-8656

backport forced daemon shutdown of HADOOP-8353 into branch-1

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.1.0
    • Component/s: bin
    • Labels:
      None
    • Environment:

      init.d

      Description

      the init.d service shutdown code doesn't work if the daemon is hung -backporting the portion of HADOOP-8353 that edits bin/hadoop-daemon.sh corrects this

      1. HADOOP-8656.patch
        1 kB
        Steve Loughran

        Issue Links

          Activity

          Hide
          Steve Loughran added a comment -

          If you suspend a hadoop daemon with a kill -STOP $pid, the service hadoop-namenode stop operation will not actually terminate the process -it issues a kill -TERM "hint".

          HADOOP-8353 forces the shutdown with a sleep followed by a kill -9 if there is a process with that pid still listed. This forces the shutdown, and should have no adverse side effects provided that Pid doesn't get reused during the sleep phase.

          This JIRA covers backporting it to 1.1 and trunk

          Show
          Steve Loughran added a comment - If you suspend a hadoop daemon with a kill -STOP $pid , the service hadoop-namenode stop operation will not actually terminate the process -it issues a kill -TERM "hint". HADOOP-8353 forces the shutdown with a sleep followed by a kill -9 if there is a process with that pid still listed. This forces the shutdown, and should have no adverse side effects provided that Pid doesn't get reused during the sleep phase. This JIRA covers backporting it to 1.1 and trunk
          Hide
          Steve Loughran added a comment -

          +1 voting it in myself after a week's grace.

          Show
          Steve Loughran added a comment - +1 voting it in myself after a week's grace.
          Hide
          Steve Loughran added a comment -

          committing -and crediting Roman as it is his patch being backported over.

          Show
          Steve Loughran added a comment - committing -and crediting Roman as it is his patch being backported over.
          Hide
          Matt Foley added a comment -

          Closed upon release of Hadoop-1.1.0.

          Show
          Matt Foley added a comment - Closed upon release of Hadoop-1.1.0.

            People

            • Assignee:
              Roman Shaposhnik
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development