Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Migrating NiFi flow files between servers

avatar
Expert Contributor

I want to move our existing data flow processes to another new server. Also, we are moving to Apache NiFi - Version 1.0.0.2.0.0.0-579 from version 1.1.1.0-12. I will appreciate advice on the best way to go about this migration.

1 ACCEPTED SOLUTION

avatar
Super Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
7 REPLIES 7

avatar

If you are moving a NiFi instance completely, the easiest approach could be to preserve same locations and copy over a complete directory where NiFi lives. It will pick up both flows from the conf/ directory as well as all of repositories.

avatar
Expert Contributor
@Andrew Grande

I might not be able to keep the same locations because the new server has more specific repositories which is not what obtains in the old NiFi server.

avatar
Super Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

@mclark @Timothy Spann Yes, I want to move the entire canvas with all configured processors. More like we have a new server and everything in the old now moves to the new server.

avatar
Super Mentor
@Joshua Adeleke

Since you are moving form two very different versions of HDF, I suggest following my procedure above. Stand-up your new HDF 2.0.1 install using a copy of your authorized-users.xml file from your old NiFi and the flow.xml.gz file from your old NiFi. Once up and running, access the UI and fix any invalid processors, controller services, and reporting tasks. There should not be many.

***NOTE: you can not copy the entire conf dir from that older version to the new as there are many changes to the files in that directory. (some do not exist in the new version and the new version has added some additional config files. What you can do is use the contents/configurations in many of the old files (named same) to configure like properties in the new NiFi's config files.

Matt

avatar
Expert Contributor

Thank you @mclark @Timothy Spann @Andrew Grande. I eventually only needed to save and import the old templates. I forgot to mention that the HDF 2.0 had already been installed on the new server.

avatar
Master Guru

https://github.com/aperepel/nifi-api-deploy

Copy all your configuration, all your conf/archive/*.gz and your conf/flow.xml.gz file.

Also from the UI, save and export all your templates separately to be sure you have them.