Skip to main content
MattWho
MattWhoAnswer
Titanium ⭐️⭐️
Sep 14, 2023 5:10 PM UTC

@Soli 
There is likelihood that once you upgrade that you will have ghosted processors (happens when you are using a processor that no longer exists in the newer release) or invalid components (happens when new version of same component class introduces new required properties that need to be configured).

Something you may want to try is standing up a different NiFi on 1.23  with autoresume.state set to false in the nifi.properties. drop your flow.xml.gz in to that NiFi and start it.  Everything will load up in stopped state.  At least then you can validate al your processors are valid and none are ghosted.  If this standalone can reach yoru redis, make sure you don't start processors that use it as it can mess up state recorded in your prod NiFi.  

You also did not mention if you have a standalone NiFi or a NiFi cluster setup.  In a NiFi cluster, Zookeeper is also used by some components to store cluster wide state.  So would not utilize same ZK in your test cluster setup used to check for component issues.

At least you will be able to rule out flow design issues and be able to make note of what needs to be fixed in your production upgrade prior to doing the upgrade.
If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt

 

6 replies

VidyaSargur
Community Manager
Community Manager
Sep 13, 2023 8:50 AM UTC

@Soli, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @cotopaul @SAMSAL @MattWho @TimothySpann  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Sep 13, 2023 12:48 PM UTC

First backup your flows and settings.   i don't think you can safely upgrade that many versions.   Parameters, records, JSON format and so many other things have come.   I would leave the old one running, backup all flows, run a new clean instance with JDK 11 or 17+ with NiFi 1.23.2 and see what is not working.   https://www.datainmotion.dev/2020/06/no-more-spaghetti-flows.html

 

See:   https://community.cloudera.com/t5/Support-Questions/Nifi-Upgrade/m-p/346309#M234832

Translate
Soli
SoliAuthor
Silver ⭐️⭐️
Sep 14, 2023 1:19 AM UTC

Hi @TimothySpann ,thanks for reply.

We use a lot of ListFile (tracking entity)+Redis cache map. We were worried about state will be losted and  cause duplicate files. Will it happend? Also, is there any recommended upgrade steps to follow for many versions migration?

Translate
MattWho
Titanium ⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️
Sep 14, 2023 5:10 PM UTC

@Soli 
There is likelihood that once you upgrade that you will have ghosted processors (happens when you are using a processor that no longer exists in the newer release) or invalid components (happens when new version of same component class introduces new required properties that need to be configured).

Something you may want to try is standing up a different NiFi on 1.23  with autoresume.state set to false in the nifi.properties. drop your flow.xml.gz in to that NiFi and start it.  Everything will load up in stopped state.  At least then you can validate al your processors are valid and none are ghosted.  If this standalone can reach yoru redis, make sure you don't start processors that use it as it can mess up state recorded in your prod NiFi.  

You also did not mention if you have a standalone NiFi or a NiFi cluster setup.  In a NiFi cluster, Zookeeper is also used by some components to store cluster wide state.  So would not utilize same ZK in your test cluster setup used to check for component issues.

At least you will be able to rule out flow design issues and be able to make note of what needs to be fixed in your production upgrade prior to doing the upgrade.
If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt

 
Translate