Search code examples
apache-nifi

Apache NiFi 2.x does not start and does not provide any informations


I like to start Apache NiFi 2.x on a Windows 11 machine. While Nifi 1.28.1 starts and runs without problems (run-nifi.bat), NiFi 2.x does not want to start at all (nifi.cmd).

Latest version I've tried is 2.2.0.

What I have done:

What happens:

  • nifi.cmd echoes "JAVA_HOME=..."
  • nifi.cmd echoes "NIFI_HOME=..."
  • nifi.cmd ends.. nothing more
  • log files (app, bootstrap, deprecation, request, user) were created, but all without a single log message

Where can I start troubleshooting?


Solution

  • I finally found the solution. I was browsing through the open issues and found this innocent looking one: https://issues.apache.org/jira/browse/NIFI-14107 In version 2 of NiFi they omitted the hint that an argument is missing. You need to start NiFi with:

    nifi.cmd start
    

    All valid parameters are: start, stop and restart. Even though it looks like the process hangs at the next 2 lines "org.apache.nifi.bootstrap.Command Bootstrap Process Running" it is already running.