Hi Praveen, As a workaround to this problem, go to the Nifi Script and set the JAVA_HOME variable from the nifi startup script.
Regards, Utkarsh Srivastava On Thu, Oct 17, 2019 at 7:49 PM Praveen Anguralia < [email protected]> wrote: > Hi team, > > I need your inputs on an issue that I am facing with respect to the > command: > sudo service nifi start > Background: I have installed Nifi in Amazon EC2 linux machine. I have > installed Java as well. When I run command as: > ./nifi.sh start > I do not find issue. Nifi starts successfully. > But when I run command as: > sudo service nifi start > It says JAVA_HOME not set. > Its not able to find out java. > Howveer, echo "$JAVA_HOME" gives the installed path > > Please help me to sort out the issue. > > Thank you, > Praveen >
