Skip to main content
Vasu_
Silver ⭐️⭐️⭐️
Jun 23, 2023 4:08 AM UTC
Solved

I upgraded my Nifi from 1.21 to 1.22 using brew once upgraded all my flows are removed

Hello, @MattWho I upgraded my local Nifi instance from 1.21 to 1.22 using brew once its upgraded all my flows/processor groups were removed and I tried to recover by coping the flow.xml.gz  from the archive the config folder but still I'm not able to get my flows is there any other way that I can get my flows back into the new instance?

 

Thanks

Vas

 

MattWho
MattWhoAnswer
Titanium ⭐️⭐️
Jun 28, 2023 8:44 PM UTC

@Vasu_ While NiFi still generates a flow.xml.gz, it is no longer the file that is loaded during NiFi startup.  If the flow.json.gz file exists, that is what is going to be loaded.  So if you swap out only the flow.xml.gz with a flow.xml.gz from archive and do not remove the flow.json.gz, the flow.json.gz is still going to be loaded.

When only the flow.xml.gz exists, NiFi will load it and convert it to a flow.json.gz which it will use from that point forward.  At this time, NiFi will still output both a flow.json.gs and flow.xml.gz as you make changes to the canvas in the NiFi UI.  Eventually the flow.xml.gz will go away completely.

 

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt






2 replies

MattWho
Titanium ⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️
Jun 28, 2023 8:44 PM UTC

@Vasu_ While NiFi still generates a flow.xml.gz, it is no longer the file that is loaded during NiFi startup.  If the flow.json.gz file exists, that is what is going to be loaded.  So if you swap out only the flow.xml.gz with a flow.xml.gz from archive and do not remove the flow.json.gz, the flow.json.gz is still going to be loaded.

When only the flow.xml.gz exists, NiFi will load it and convert it to a flow.json.gz which it will use from that point forward.  At this time, NiFi will still output both a flow.json.gs and flow.xml.gz as you make changes to the canvas in the NiFi UI.  Eventually the flow.xml.gz will go away completely.

 

If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt






Translate
Vasu_
Vasu_Author
Silver ⭐️⭐️⭐️
Jun 30, 2023 3:54 AM UTC

Hello @MattWho, 

I tried the option you provided, and I had no luck recovering the pipelines. As this is my local instance I restored from the templates I have. thanks for your reply.

 

Regards,

Vas

 

 

Translate