Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

/
-->  opt/
  -->  nifi-current_version
      |--> LICENSE
      |--> NOTICE
      |--> README
      |--> bin/
      |--> conf/
      |--> docs/
      |--> lib/
      |--> work/
      |--> content_repository/
      |--> flowfile_repository/
      |--> logs/
      |--> provenance_repository/

...

To optimize the NiFi directory structure for upgrade:

...

/
|--> opt/
|    |--> nifi-current_version
|    |    |--> LICENSE
|    |    |--> NOTICE
|    |    |--> README
|    |    |--> bin/
|    |    |--> conf/
|    |    |--> docs/
|    |    |--> lib/
|    |    |--> work/
|    |    
|    |--> Configuration_resources/
|    |    |--> authorized-users.xml
|    |    |--> flow.xml.gz
|    |    |--> templates/
|    |    |--> custom_lib/
|
|--> database_repository/
|--> content_repository_1/
|--> content_repository_N
|--> flowfile_repository/
|--> NiFi-logs/
|--> provenance_repository_1/
|--> provenance_repository_N/ 


 

Important:  Upgrading from NiFi 0.x to 1.x converts your database, content, flowfile, log, and provenance repositories automatically. Once upgraded, you can not revert the repositories back to 0.x format.

Anchor
customProcessors
customProcessors
Preserving your custom processors

 

...

If you have written any custom NARs, first test and validate them in a separate new NiFi release sandbox prior to upgrading.  The verified NARs can be preserved during the upgrade by storing them in a centralized location as follows:

  1. Create a second library directory, called custom_lib.

  2. Move your custom NARs to this new lib directory.

  3. Add a new line to the nifi.properties file to specify this new lib directory:

nifi.nar.library.directory=./lib

nifi.nar.library.directory.custom=/opt/configuration_resources/custom_lib

Anchor
customNARs
customNARs
Preserving customized NAR files

If you have modified any of the default NAR files, an upgrade will overwrite these changes. To preserve the customization:

  1. Identify and save the changes you have made to the default NAR files in your existing instance.

  2. Perform your upgrade to NiFi 1.0.0.

  3. Redo the changes you have made to the NAR files in your NiFi 1.0.0 instance.