[
https://issues.apache.org/jira/browse/NIFI-4913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16982582#comment-16982582
]
Joe Witt commented on NIFI-4913:
--------------------------------
>From https://linux.die.net/man/8/sudo
-E' The -E (preserve environment) option indicates to the security policy that
the user wishes to preserve their existing environment variables. The security
policy may return an error if the -E option is specified and the user does not
have permission to preserve the environment.
We should do something to ensure the user gets reasonable response if this is
not possible and it should avoid doing it unless necessary. We dont want to
increase the risk of this command not working.
> Specifying "run.as" in bootstrap.properties causes environment variables to
> not be passed to NiFi
> -------------------------------------------------------------------------------------------------
>
> Key: NIFI-4913
> URL: https://issues.apache.org/jira/browse/NIFI-4913
> Project: Apache NiFi
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 1.5.0
> Reporter: Jonathan Peterson
> Priority: Minor
> Labels: beginner
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I solved this by including "-E" after "sudo" in nifi.sh [1].
> [1]
> [https://github.com/apache/nifi/blob/rel/nifi-1.5.0/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh#L312]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)