Upgrading MiNiFi Java agents from 1.x to 2.x
Learn how to upgrade your MiNiFi Java agents.
- Stop the previous MiNiFi instance.
- Unpack the new assembly.
-
Copy the following files from the conf directory of the
previous instance to the conf directory of the new
instance:
- agent-identifier
- device-identifier (if it exists, generated for some platforms only)
- Download and unpack the minifi-toolkit.
-
Navigate to the minifi-toolkit directory and issue the following command.
bin/config.sh transform-yml <previous_minifi_instance_directory>/conf/config.yml <previous_minifi_instance_directory>/conf/bootstrap.conf <new_minifi_instance_directory>/conf/flow.json.raw <new_minifi_instance_directory>/conf/bootstrap.conf
-
Migrate the following directories to the root of the new instance.
- content_repository
- flowfile_repository
- provenance_repository
- state
- Start the new MiNiFi instance.
- Once the new instance is validated, you can remove the previous one.