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

Kevin Doran edited comment on NIFI-3899 at 6/16/18 4:36 PM:
------------------------------------------------------------

The file in its current state indicates it was an intentional choice not to 
redirect stderr. From the [commit 
comment|https://github.com/apache/nifi/commit/58cf15a912b5413a4a6e511352b4dac4f7a5dfdd]:
 
{quote}Pipe stdout to /dev/null and allow stderr to propagate through. 
{quote}
I'm happy to submit a change that changes this line include *{{2>&1}}*, 
redirecting stderr to stdout, but I'm not sure if that breaks other use cases / 
purposes / assumptions about stderr ouput. [~aldrin], can you comment?
----
Update: Looking into the original PR more in depth. It appears the intention 
was to optimize for users invoking the script over ssh, to close the stdout 
stream but allow stderr to be returned over the ssh tunnel, so that if nifi 
bootstrap does not start cleanly, it does not fail silently.

I'm wondering if there is a change that will cause this script to work well for 
both use cases?


was (Author: kdoran):
The file in its current state indicates it was an intentional choice not to 
redirect stderr. From the [commit 
comment|https://github.com/apache/nifi/commit/58cf15a912b5413a4a6e511352b4dac4f7a5dfdd]:
 
{quote}Pipe stdout to /dev/null and allow stderr to propagate through. 
{quote}
I'm happy to submit a change that changes this line include *{{2>&1}}*, to 
redirecting stderr to stdout, but I'm not sure if that breaks other use cases / 
purposes / assumptions about stderr ouput. [~aldrin], can you comment?
----
Update: Looking into the original PR more in depth. It appears the intention 
was to optimize for users invoking the script over ssh, to close the stdout 
stream but allow stderr to be returned over the ssh tunnel, so that if nifi 
bootstrap does not start cleanly, it does not fail silently.

I'm wondering if there is a change that will cause this script to work well for 
both use cases?

> nifi.sh/bootstrap hangs when controlled by Saltstack
> ----------------------------------------------------
>
>                 Key: NIFI-3899
>                 URL: https://issues.apache.org/jira/browse/NIFI-3899
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0
>            Reporter: Joseph Gresock
>            Priority: Major
>
> It was reported that the changes to revert how the process was started have 
> caused NiFi to hang when driven by SaltStack even with the following PR that 
> resolved the two issues listed in NIFI-2199 & NIFI-3112
> This was reported here https://github.com/apache/nifi/pull/1786 in comment 
> https://github.com/apache/nifi/pull/1786#issuecomment-301080248



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to