Skip to main content
mohdriyaz
Gold ⭐️
November 29, 2024
Question

Nifi 2.0 Start Problem

Hello , 

I use "nifi.cmd start" to start with NIFI.

Sometime  it works and most of the times it doesn't. 

In case  where NIFI doesn't work I am getting following logs : 

mohdriyaz_0-1732896428646.png

2024-11-29 21:06:39,642 INFO [main] o.a.n.w.StandardContentViewerApplication Starting StandardContentViewerApplication using Java 21.0.2 with PID 24600 (D:\WorkingInstaller\2.0\nifi-2.0.0-bin\nifi-2.0.0\work\jetty\nifi-standard-content-viewer-2.0.0.war\webapp\WEB-INF\classes started by Riyaz in D:\WorkingInstaller\2.0\nifi-2.0.0-bin\nifi-2.0.0)
2024-11-29 21:06:39,643 INFO [main] o.a.n.w.StandardContentViewerApplication No active profile set, falling back to 1 default profile: "default"

 

Any pointers would be appreciated.

Thanks,

Riyaz

15 replies

Dahlgren
Silver ⭐️⭐️⭐️
December 5, 2024

I have the same problem.

Translate
DianaTorres
Community Manager
Community Manager
December 5, 2024

@MattWho @SAMSAL @mburgess Hi! Do you have some insights here?

Translate
Regards, Diana Torres, Senior Community Moderator
PepeVo
Silver ⭐️⭐️⭐️
December 31, 2025

I have a same problem.  Nifi.sh started and failed in next few seconds.

2025-12-31 14:03:57,387 INFO [main] org.apache.nifi.bootstrap.Command Application Process [9606] started
2025-12-31 14:03:57,388 INFO [main] org.apache.nifi.bootstrap.Command Bootstrap Process Running
2025-12-31 14:04:57,392 INFO [StartBootstrapCommand] o.a.n.b.c.ApplicationProcessStatusBootstrapCommand Application Process not found
2025-12-31 14:04:57,392 WARN [StartBootstrapCommand] o.a.n.b.command.StartBootstrapCommand Application monitoring failed with status [STOPPED]


nifi can't start with Java17 but Java21

Any pointers would be appreciated

 

BV



Translate
DianaTorres
Community Manager
Community Manager
December 31, 2025

Hello @PepeVo! As this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator
MattWho
Titanium ⭐️⭐️⭐️
Titanium ⭐️⭐️⭐️
December 9, 2024

@mohdriyaz 

These are just INFO level log lines.   What logging did you see in the NiFi bootstrap.log?  
Does the process die or does just appear hung and not progressing to point where UI is becomes available?

On the times where NiFi did start, what log lines are seen immediately after above are output?

Thanks,
Matt

Translate
Dahlgren
Silver ⭐️⭐️⭐️
December 10, 2024

Hello,

The process hangs. The lines in mohdriyaz' screenshot are the last ones that appear. There are no errors. When quitting with ctrl-c in the CMD window, one Java process is hanging and needs to be killed with the task manager.

In cases when the start succeeds, the app log continues within a second and the memory usage of the java process increases.

I think the bootstrap log seems normal when the startup fails, for example:

 

2024-12-05 14:58:44,813 INFO [main] o.a.n.b.command.RunBootstrapCommand Java Version: 21.0.5+11-LTS
2024-12-05 14:58:44,813 INFO [main] o.a.n.b.command.RunBootstrapCommand Available Processors: 4
2024-12-05 14:58:44,891 INFO [main] o.a.n.b.command.RunBootstrapCommand E:\jdk21.0.5_11\bin\java.exe --class-path E:\nifi-2.0.0\lib\jcl-over-slf4j-2.0.16.jar;E:\nifi-2.0.0\lib\jul-to-slf4j-2.0.16.jar;E:\nifi-2.0.0\lib\log4j-over-slf4j-2.0.16.jar;E:\nifi-2.0.0\lib\logback-classic-1.5.12.jar;E:\nifi-2.0.0\lib\logback-core-1.5.12.jar;E:\nifi-2.0.0\lib\nifi-api-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-framework-api-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-nar-utils-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-per-process-group-logging-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-properties-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-property-utils-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-python-framework-api-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-runtime-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-server-api-2.0.0.jar;E:\nifi-2.0.0\lib\nifi-stateless-api-2.0.0.jar;E:\nifi-2.0.0\lib\slf4j-api-2.0.16.jar;E:\nifi-2.0.0\conf -Dorg.apache.nifi.bootstrap.config.log.dir=E:\nifi-2.0.0\logs -Dnifi.properties.file.path=E:\nifi-2.0.0\conf\nifi.properties -Dorg.apache.nifi.management.server.address=127.0.0.1:52020 -Djavax.security.auth.useSubjectCredsOnly=true -Xmx10g -Djava.awt.headless=true -Xms5g -Dsun.net.http.allowRestrictedHeaders=true -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dcurator-log-only-first-connection-issue-as-error-level=true org.apache.nifi.NiFi
2024-12-05 14:58:44,922 INFO [main] org.apache.nifi.bootstrap.Command Application Process [10636] started
2024-12-05 14:58:44,922 INFO [main] org.apache.nifi.bootstrap.Command Bootstrap Process Running
2024-12-05 14:59:44,939 INFO [StartBootstrapCommand] o.a.n.b.c.ApplicationProcessStatusBootstrapCommand Application Process [10636] running
2024-12-05 14:59:44,939 INFO [StartBootstrapCommand] o.a.n.b.command.StartBootstrapCommand Application monitoring started
2024-12-05 14:59:49,954 INFO [StartBootstrapCommand] o.a.n.b.c.ApplicationProcessStatusBootstrapCommand Application Process [10636] running
2024-12-05 14:59:54,955 INFO [StartBootstrapCommand] o.a.n.b.c.ApplicationProcessStatusBootstrapCommand Application Process [10636] running

And keeps repeating the same line until you kill it.

Thanks,

 

Translate
DianaTorres
Community Manager
Community Manager
December 10, 2024

@Dahlgren @mohdriyaz Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @mattwho has requested? Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator
DianaTorres
Community Manager
Community Manager
December 19, 2024

@mohdriyaz @Dahlgren Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator
mohdriyaz
mohdriyazAuthor
Gold ⭐️
January 3, 2025

I found one solution ... ( not the correct way)

just  remove nifi-standard-content-viewer-nar-2.0.0.nar from Lib folder and it will start working.

Only issue with this approach is that you cannot view the flow file contents in JSON or any other format. You can view it only in Hex format (default) 

 

Translate