Using migrate-all
Learn how to use the migrate-all
command to migrate templates,
variables, and components in a single operation.
This command combines the functionality of the migrate-templates
,
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 three 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-all
provides 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-requests
andmanual-inspection-requests
.
Migrating templates, variables, and components together using
migrate-all
- 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).
- Unzip the file to obtain flow.json.
Migrating a process group using migrate-all
For complex flows, you can migrate one process group and on one stage at a time. See below for an example workflow.