Using migrate-all
with flow.json.gz as input
Learn how to use the migrate-all
command to migrate templates,
variables, and components in a single operation using a flow.json.gz file as
input.
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-validation-requests
.
Migrating templates, variables, and components together using
migrate-all
with flow.json.gz 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).
Migrating a process group using migrate-all
with flow.json.gz as
input
For complex flows, you can migrate one process group and on one stage at a time. See below for an example workflow.