Support Questions

Find answers, ask questions, and share your expertise

How to upgrade to latest Nifi version ?

avatar
Contributor

Kindly help me with the procedure how to upgrade to latest Nifi version ?

I have installed Nifi-1.4.0 but i need to update it to nifi-1.6.0 which is the latest version.

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Rahul Kumar

Upgrading NiFi versions is not a very hard process.

-

1. Install the new version in a parallel manor.

for example:

- lets assume 1.4 is installed at /opt/nifi/nifi-1.4.0/

- Install 1.6 in /opt/nifi/nifi1.6.0/

2. Use the configurations from the various NiFi configuration files found in the nifi conf directory of 1.4 to configure the same named configuration files in the new 1.6 NiFi conf directory. *** It may be possible at times to simply copy the configuration files from one version to another, but be cautious here of new properties that may be added to these configuration files between releases. NiFi 1.6 should be configured to point at the same 4 repositories (database, content, flowfile, and provenance (if best practices were used these are located on separate disks outside of base NiFi install path)) being used by the old NiFi 1.4. If the This is a NiFi cluster, 1.6 should be using the same external zookeeper as the 1.4 used (If embedded ZK was used, recommend in stalling a n external ZK for new NiFi and migrating its content from embedded ZK to external ZK). New NIFi should also point to same local NiFi state directory.

3. Stop your nifi 1.4 instance/cluster. Copy the flow.xml.gz, users.xml (if secured), and authorizations.xml (if secured) from NiFi 1.4 to NiFi 1.6.

4. Start new NiFi 1.6 version. NiFi 1.6 will start, load the copied flow.xml.gz file, read in Flowfiles from the same flowfile and content repositories nifi 1.4 was using before it was shutdown. Your new NIFi will pickup processing right where the previous version left off when it was shutdown.

-

*** Be mindful if you have any added custom nars/jars you added tp the previous nifi version. Those will need to be moved to new Nifi as well. Recommend placing any custom nars/jars in a separate custom lib directory rather in NiFi's default lib directory.

-

Thank you,

Matt

-

If you find an answer that addresses your question best, please take a moment to login to the forum and click the "Accept" link below that provided answer.

View solution in original post

4 REPLIES 4

avatar
Contributor

Hello – there is a 1.x.0 to 1.x.0 upgrade guide that walks you through the process.

https://cwiki.apache.org/confluence/display/NIFI/1.x.0+to+1.x.0+Upgrade

avatar
Contributor

Thank you Rob

avatar
Master Mentor
@Rahul Kumar

Upgrading NiFi versions is not a very hard process.

-

1. Install the new version in a parallel manor.

for example:

- lets assume 1.4 is installed at /opt/nifi/nifi-1.4.0/

- Install 1.6 in /opt/nifi/nifi1.6.0/

2. Use the configurations from the various NiFi configuration files found in the nifi conf directory of 1.4 to configure the same named configuration files in the new 1.6 NiFi conf directory. *** It may be possible at times to simply copy the configuration files from one version to another, but be cautious here of new properties that may be added to these configuration files between releases. NiFi 1.6 should be configured to point at the same 4 repositories (database, content, flowfile, and provenance (if best practices were used these are located on separate disks outside of base NiFi install path)) being used by the old NiFi 1.4. If the This is a NiFi cluster, 1.6 should be using the same external zookeeper as the 1.4 used (If embedded ZK was used, recommend in stalling a n external ZK for new NiFi and migrating its content from embedded ZK to external ZK). New NIFi should also point to same local NiFi state directory.

3. Stop your nifi 1.4 instance/cluster. Copy the flow.xml.gz, users.xml (if secured), and authorizations.xml (if secured) from NiFi 1.4 to NiFi 1.6.

4. Start new NiFi 1.6 version. NiFi 1.6 will start, load the copied flow.xml.gz file, read in Flowfiles from the same flowfile and content repositories nifi 1.4 was using before it was shutdown. Your new NIFi will pickup processing right where the previous version left off when it was shutdown.

-

*** Be mindful if you have any added custom nars/jars you added tp the previous nifi version. Those will need to be moved to new Nifi as well. Recommend placing any custom nars/jars in a separate custom lib directory rather in NiFi's default lib directory.

-

Thank you,

Matt

-

If you find an answer that addresses your question best, please take a moment to login to the forum and click the "Accept" link below that provided answer.

avatar
Contributor

Thanks Matt 🙂