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

Wiktor Kubicki commented on NIFI-9294:
--------------------------------------

Firstly - i dont think u should run nifi as root - it can be security leak. I 
guarantee you that nifi is usable in non-root enviroment.
Personally i ignore warning about no java_home set, but i have very vanilla 
host with one version of java and nothing else. I believe this is important in 
more coplex enviroment. You could try add java_home in your .profile file 
(yours and root user if you use sudo). 

There is very similar case: 
https://stackoverflow.com/questions/34966648/java-home-is-not-defined-correctly-on-ubuntu.
 Try it and remember to give feedback here :)

> nifi.sh: JAVA_HOME not set; results may vary
> --------------------------------------------
>
>                 Key: NIFI-9294
>                 URL: https://issues.apache.org/jira/browse/NIFI-9294
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration, NiFi Registry, NiFi Stateless, Tools and 
> Build
>    Affects Versions: 1.14.0
>         Environment: Ubuntu 20.04
>            Reporter: Grivine Ochieng Otieno
>            Priority: Critical
>         Attachments: Screenshot from 2021-10-11 20-18-57.png, nifi-env.sh, 
> nifi.sh
>
>   Original Estimate: 60h
>  Remaining Estimate: 60h
>
> I cant start NiFi after installing and setting up path for java on my 
> computer. The message returned on the terminal is as shown in the image and 
> attachments. Please can anyone help me resolve the issue?
>  JAVA_HOME is set already. I tried editing the nifi_env.sh file but it 
> returned an error saying java path is invalid. I am stuck and cannot proceed.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to