Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache nifi doesn't start

I've tried several times to run an Apache Nifi server, but it won't work. I'm using windows 8 and installed java version 8.

I get this error message:

'nifi-env.bat' is not recognized as an internal or external command, operable program or batch file.
The JAVA_HOME environment variable is not defined correctly.
Instead the PATH will be used to find the java executable.

Error Screenshot:

https://i.sstatic.net/qp2fi.png

I've tried the solution to the following similar problem, but this did not help:

Nifi commands on windows

I've also tried what is explained in this video, but this did not work either:
How to Install Apache NiFi and run Simple Process

What should I do in order to run the nifi?

like image 577
Sahani Rajapakshe Avatar asked Feb 27 '26 19:02

Sahani Rajapakshe


1 Answers

There seems to be a Java installation error, which is affecting the nifi-env.bat file. Problem will be solved if you create a virtual environment with java. The following link explains how to create a Java Virtual environment. This will also solve the problem with 'nifi-env.bat' is not recognized as an internal or external command as in that case nifi would only be able to be run within the virtual environment.

Try to troubleshoot the problem by reinstalling java, if the above doesn't work out.

like image 146
Himsara Gallege Avatar answered Mar 02 '26 09:03

Himsara Gallege



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!