nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (NIFI-2063) Install Script Relative Path Mismatch from Init Dir
Date Wed, 22 Jun 2016 18:12:16 GMT


ASF GitHub Bot commented on NIFI-2063:

Github user apiri commented on the issue:
    Looks like the current commit will currently disregard after being installed.
 Consider the case where I install the service and then later switch JRE (perhaps between
Oracle and Open JDK).  The service, in this scenario, will still use the JRE specified at
the time of install.  This could be confusing for users when they make changes in their installed but they do not get used.
    I think we should shoot for a version that allows a user to make changes locally and not
have the installed service make use of them.

> Install Script Relative Path Mismatch from Init Dir
> ---------------------------------------------------
>                 Key: NIFI-2063
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.0.0, 0.7.0
>         Environment: Linux/Unix with SysVInit
>            Reporter: James Wing
>            Assignee: Yolanda M. Davis
>             Fix For: 0.7.0
> Ryan Hendrickson noticed that installing and running NiFi as a service in 0.7.0-SNAPSHOT
is not working right.  Running commands like the following:
> {code}
> $ sudo /opt/nifi/nifi-0.7.0-SNAPSHOT/bin/ install
> Service nifi installed
> $ sudo service nifi start
> /etc/init.d/nifi: line 28: /etc/init.d/ No such file or directory
> {code}
> Results in errors loading
> *Used-To-Be*
> As I understand it, {{ install}} used to:
> 1. copy bin/ to /etc/init.d/nifi
> 2. Run sed to change NIFI_HOME initializations to the path to, where install
was invoked
> 3. When {{service nifi start}} was run, the NIFI_HOME path was hard-coded in the service
script file.
> *As-Is*
> 1. now gets NIFI_HOME from bin/, which is stored alongside
> 2. install() still calls sed to update NIFI_HOME=, but the initialization is now in,
so nothing is replaced.
> 3. When {{service nifi start}} is called, relative path to {{SCRIPT_DIR/}}
resolves to {{/etc/init.d/}}, which does not exist.
> *To-Be*
> A possible solution might be to have sed update SCRIPT_DIR to be hard-coded, and change
to that directory to run

This message was sent by Atlassian JIRA

View raw message