You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Hesselmann, Brian" <br...@cgi.com> on 2018/09/18 11:44:49 UTC

Nifi administration: Importing environment variables

Hi,

I've been trying to import certain environment variables into Nifi. I know it is possible to add exports of variables to the nifi-env.sh file. However these variables are only loaded on a nifi service restart and not added during a system reboot or systemctl restart.

The reason I looked into this is because certain executables I want nifi to run (using executeStreamCommand) require these environment variables. The error I get is:

"Failed to create process due to Cannot run program "lq": error=2, No such file or directory: java.io.IOException: Cannot run program "lq": error=2, No such file or directory"

The error (usually) goes away when I restart the nifi service, but I found it has been inconsistent. I'm running nifi on Ubuntu 18.04. Is there another (better) way to add environment variables to nifi?

best regards,
Brian