Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

Nifi 2.0 Start Problem

avatar
Contributor

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 15

avatar
Master Mentor

@Dahlgren 

I conversation with a committer to the Apache NiFi product and he stated that this is a known issue they are aware of and investigating.  There is no Apache NiFi jira that I can find specifically for this issue. . The best suggestion I can make at this point is maybe raising an Apache NiFi jira and if possible share thread dumps (3 dumps spaced 5 minutes apart). Looking at what threads are not progressing from one thread dump to the next may provide clues as to where specifically it is getting hung in the startup code.  That should narrow down the scope of investigation and confirm that all experiencing this issue are getting hung in the same code area.

Of course including your NIFi 2.0.0-Mx specific version, OS version, and Java version is also important in that Apache Jira.

Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt

avatar
Master Mentor

@Dahlgren 

- Make sure you are using a Java 21 JDK and not a Java 21 JRE.
- Try excluding the NiFi directory to include all the repositories from your Virus scanning software and see if that helps resolve the startup issue.

Here is an Apache NiFi slack thread discussing this same issue:
https://apachenifi.slack.com/archives/C0L9UPWJZ/p1731963549046199

Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt



avatar
Explorer

...double post

avatar
Community Manager

@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.


Regards,

Diana Torres,
Senior Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Community Manager

@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.


Regards,

Diana Torres,
Senior Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Contributor

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)