nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aldrin Piri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-519) Starting NiFi into a process
Date Tue, 21 Apr 2015 13:26:58 GMT

    [ https://issues.apache.org/jira/browse/NIFI-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504940#comment-14504940
] 

Aldrin Piri commented on NIFI-519:
----------------------------------

Could you provide your script to provide some additional context?

Are you executing this script as a command via SSH?  If so, you are likely on the right track
concerning the notion of nohup-ing the process as the SSH session is closing after that command
is executed.

> Starting NiFi into a process
> ----------------------------
>
>                 Key: NIFI-519
>                 URL: https://issues.apache.org/jira/browse/NIFI-519
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Core Framework
>    Affects Versions: 0.0.2
>         Environment: Centos 6
>            Reporter: Mr John
>
> I've written a bash script that sets up NiFi and it tries to start it up. I get the "Successfully
started Apache NiFi" message returned. However, when the script exits(immediately after getting
that message) NiFi fails to start.
> I believe this is due to the bootstrap loader exiting which is what I believe NiFi is
using to start. If I manually SSH into the server itself and run the same command, it starts
up just fine. Is there a way we can wrap the startup process within the "nohup" command?
> Log:
> INFO [main] org.apache.nifi.NiFi Launching NiFi...
> INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for
incoming requests on port 52283
> INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with
Bootstrap
> INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server...
> INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message