Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-862

init.d scripts do not work reliably on systemd systems

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: CDH5.0.0
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      We noticed that init.d scripts do not reliably work on systemd-based operating systems (CentOS 7). Sometimes, if process (for us, usually NodeManager) dies for some reason then systemd doesn't seem to be aware of it and "systemctl restart hadoop-yarn-nodemanager" doesn't have any effect. You need to stop, then start.

      There is https://issues.apache.org/jira/browse/BIGTOP-2406 that seems to address something like this by adding "# pidfile" line to all init.d scripts. Can this be added to CDH?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vitaliy.fuks Vitaliy Fuks
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: