Using migrate-all with flow definition JSON as input
Learn how to use the migrate-all command to migrate variables and
components in a single operation using a flow definition JSON file as input.
This command combines the functionality of the migrate-variables and
migrate-components commands for ease and convenience.
While migrate-all simplifies the migration process, for larger
flows, it is usually better to run the individual migration commands separately. You
may also want to migrate process groups individually to ensure activity logs and
manual validation remain manageable.
The migrate-all command can be useful in the following
scenarios:
-
The flow you want to migrate is simple and of manageable size.
-
The flow is large and complex, and you need an initial high-level overview of the migration outcome before performing a step-by-step migration. Running
migrate-allprovides a preview of the final migrated flow. The Activity Log shows you the actions taken during migration and helps assess the required manual intervention by listingmanual-change-requestsandmanual-validation-requests.
Migrating variables and components together using migrate-all with flow
definition JSON as input
- Offload all flowfiles from NiFi.
- Stop all processors and disable all controller services in NiFi.
- Stop NiFi.
- Copy the flow.json.gz file from NiFi’s conf directory to the Migration Tool’s input folder (/etc/migration-tool-input).
