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

Hadoop scripts may errantly believe a daemon is still running, preventing it from starting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha4
    • 3.2.0
    • scripts
    • None
    • Reviewed

    Description

      I encountered a case recently where the NN wouldn't start, with the error message "namenode is running as process 16769. Stop it first." In fact the NN was not running at all, but rather another long-running process was running with this pid.

      It looks to me like our scripts just check to see if any process is running with the pid that the NN (or any Hadoop daemon) most recently ran with. This is clearly not a fool-proof way of checking to see if a particular type of daemon is now running, as some other process could start running with the same pid since the daemon in question was previously shut down.

      Attachments

        1. HADOOP-14855.001.patch
          0.8 kB
          Robert Kanter
        2. HADOOP-14855.002.patch
          0.8 kB
          Robert Kanter

        Issue Links

          Activity

            People

              rkanter Robert Kanter
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: