Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1709

The nifi.sh install script assumes RHEL directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0
    • Tools and Build
    • None
    • SUSE

    Description

      When setting up NiFi, the command:
      bin/nifi.sh install

      The following error occurs:
      ln: failed to create symbolic link `/etc/rc2.d/S65nifi': No such file or directory
      ln: failed to create symbolic link `/etc/rc2.d/K65nifi': No such file or directory
      Service nifi installed

      Looking in the nifi.sh, around line 145 - 148, you see:
      rm -f "/etc/rc2.d/S65${SVC_NAME}"
      ln -s "/etc/init.d/${SVC_NAME}" "/etc/rc2.d/S65${SVC_NAME}"
      rm -f "/etc/rc2.d/K65${SVC_NAME}"
      ln -s "/etc/init.d/${SVC_NAME}" "/etc/rc2.d/K65${SVC_NAME}"

      It tries to symlink from /etc/init.d/nifi to /etc/rc2.d/S65nifi (and K65nifi).

      The problem is that the script assumes that /etc/rc2.d exists in a SUSE system, which it doesn't.
      In Suse11, this directory is /etc/init.d/rc2.d/

      The script, especially the "install" option should correctly identify the OS flavor it runs on, and install the files in the correct location.

      The next version of RHEL (8, not out yet), and Ubuntu 16.02 LTS (releasing next month), will use systemD, which does not have the concept of /etc/rc2.d directories, but works with "targets". The script will not be compatible with these OS changes.

      Attachments

        Issue Links

          Activity

            People

              trixpan Andre F de Miranda
              dawynne Wynner
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: