Apache NiFi 1.x to 2.x migration

NiFi 1.x reached end of support, and moving to NiFi 2 requires a staged path through 1.27.0, a new flow file format and tested flows. This page explains what the migration involves, what drives its cost, and what to keep in-house or hand to a partner.

On this page

Apache NiFi 1.x to 2.x migration: when it stops being optional

If your production dataflows still run on a NiFi 1.x cluster, the migration is no longer a planning exercise you can defer. The NiFi downloads page lists December 8, 2024 as the end-of-support date for 1.28.1, and NiFi 1.28 is the last minor release of the version 1 series. Past that date, your cluster receives no further fixes from the project, so every vulnerability found in the 1.x line stays open unless you patch it yourself. The project's own position is that the line cannot be maintained further, because it depends on Jetty 9.4, Spring Framework 5.3 and AngularJS 1.8, and those components cannot be upgraded within it. The only sustainable path is NiFi 2.

The migration guidance sets a required order. You must first upgrade to NiFi 1.27.0 and only then move to 2.0.0, so a cluster on an older 1.x release has an extra step before the cutover. You also need to change the flow configuration file from flow.xml.gz to flow.json.gz. Confirm your current version, your flow file format and whether any custom processors or NARs are compiled against APIs that changed, because those checks determine how much work sits ahead of you. Ask your vendors or internal owners for each custom component's supported NiFi versions before you commit to a date.

Most teams with a capable platform group handle the migration in-house, especially where flows are few, well documented and owned by people who will run them afterward. Teams with many flows, custom processors, tight change windows or regulated evidence requirements more often bring in a partner for flow inventory, test design and cutover support, while keeping ownership of the flows themselves. In practice the split comes down to whether your team can test every flow against 2.x before the old cluster is retired.

What a NiFi 1.x to 2.x migration includes and delivers

The migration runs as six components that feed one another: the inventory sets the scope, the stepping-stone upgrade and configuration conversion move the running system, and remediation, runtime alignment and testing decide when cutover is safe. Each component ends in a deliverable the client keeps, so the decision to cut over rests on written evidence rather than on memory of the project.

Inventory and flow analysis

This component maps every flow, process group, controller service, parameter context, custom NAR and external dependency running on the 1.x cluster. The inventory lists which components are removed, renamed or behave differently in NiFi 2, and which flows depend on the variable registry scope that NiFi 2 replaces. The client receives an inventory of flows and components with a risk rating per item, which becomes the input for every other component.

Migration guidance

1.27.0 stepping stone upgrade

The NiFi migration guidance requires moving to NiFi 1.27.0 before 2.0.0, so the running 1.x cluster is upgraded first and must run cleanly on that release. The work covers rolling node upgrades, verification of flow health and provenance after each step, and a documented rollback point. The client receives an upgrade record with the versions run at each node and the health checks passed.

Flow configuration conversion

NiFi 2 reads its flow configuration from flow.json.gz instead of flow.xml.gz, so the conversion must be run against a copy of the production flow and checked for drift. The work confirms that every processor, connection, controller service and sensitive property survives the conversion, and that encrypted values are handled with the correct keys. The client receives the converted file, a comparison report against the source, and the key handling procedure.

Removed and renamed component remediation

This component replaces removed variable registry references with ENVIRONMENT scope parameters and updates the renamed distributed map cache components wherever they appear. It also covers custom processors and scripts that call the old names, which need rebuilding against NiFi 2 APIs. The client receives a remediation log that lists each changed component, the old and new name, and the reviewer who approved the change.

Java 21 and Python runtime alignment

NiFi 2 needs Java 21 as its minimum runtime, and any optional Python-based processors must run on Python 3.10, 3.11 or 3.12. Hosts, JVM options, container images and Python environments are aligned and checked on a staging cluster before production nodes change. Python processors are flagged for review because the administration guide describes them as beta. The client receives a runtime baseline record and a list of Python processors with their pinned versions.

Pre-cutover testing, cutover and rollback

Flows are replayed on a staging NiFi 2 cluster with representative data, and outputs are compared with the 1.x results for each source and destination. The cutover runbook sets the sequence, the freeze window, the go or no-go checks and the rollback trigger, and rollback is rehearsed before the production change. The client receives test evidence, a cutover runbook and a rollback record.

What drives Apache NiFi migration cost and duration

This table lists the factors that change the effort of moving a NiFi 1.x estate to NiFi 2, with why each one matters and how to keep it under control. Read it as a checklist for scoping: the more of these drivers your environment has, the more testing and rework the cutover will need. Flow count, removed variable scope and custom NARs usually carry the most weight.

DriverWhy it matters for this migrationHow to keep it down
Number of flows and process groupsEach flow must be upgraded to 1.27.0, converted to flow.json.gz and tested. Effort grows with the count of process groups, not only with the count of flows.Inventory every flow and retire unused ones before migration. Group flows by business owner so testing can run in batches.
Variable registry usageThe variable registry expression language scope was removed in NiFi 2.0 and replaced by an ENVIRONMENT scope. Every expression that references the old scope must be found and rewritten.Search all flows and parameter-related configuration for variable registry references early. Move values into parameter contexts where the flow design allows.
Distributed map cache componentsThe distributed map cache components were renamed in NiFi 2.0. Processors and controller services that reference them need reconfiguration and retesting.List every cache usage per flow. Update references in a single pass per flow, then verify cache behavior under load.
Templates and other removed or changed artifactsTemplates were removed in NiFi 2, so flows that depend on them must be rebuilt or replaced with another reuse method before cutover.Identify template use in the inventory. Decide per template whether to rebuild, convert to reusable process groups or retire it.
Custom processors and NARsCustom NARs compiled against 1.x APIs may need code changes, rebuilds and retesting against NiFi 2 before they can load.Count custom NARs and their owners. Confirm whether source is available and whether each component has an active owner to approve changes.
Python-based processorsPython processors are an optional feature described as beta, and they depend on Python 3.10, 3.11 or 3.12. Version mismatches or unsupported scripts add test cycles.Confirm which processors use Python and pin a supported interpreter version. Plan extra test time for any beta-dependent flow.
Java 21 runtimeNiFi 2 requires Java 21 as the minimum runtime. Hosts, base images and any scripts that start NiFi must be checked and upgraded alongside the application.Audit host and container images for Java versions. Include runtime upgrades in the same change window as the NiFi upgrade where possible.
Number of clusters and environmentsEach cluster and each environment (development, test, production) repeats the upgrade, configuration checks and validation work.Standardize configuration across environments. Upgrade lower environments first and reuse the same test scripts for each cluster.
Integrations with external systemsConnections to databases, message brokers, APIs and identity providers must be retested because processors and credentials may behave differently after the upgrade.Map each external dependency to the flows that use it. Prioritize end-to-end tests for the highest-volume or regulated data paths.
Compliance evidence needsAssessors may ask for change records, test results, access settings and data handling controls covering the migration. Gathering this evidence adds work outside the flow changes.Confirm evidence requirements with your auditor or compliance team before starting. Record test results and approvals as the migration proceeds.

How an Apache NiFi 2 migration runs, phase by phase

The sequence moves a NiFi 1.x deployment onto NiFi 2 in controlled stages, so each change is tested against a known baseline before it reaches production. Every phase ends with a written output that the next phase depends on.

  1. Inventory flows, components and dependencies

    The team records every process group, processor, controller service, parameter context, reporting task and custom NAR in the current 1.x cluster, along with the data sources, sinks and authentication settings each flow relies on. DeployOpen's engineers review the inventory with your flow owners to flag anything that is deprecated, renamed or tied to a runtime that NiFi 2 no longer supports. The step is complete when the inventory is signed off and every flow has a named owner.

  2. Design the target and build the environment

    The target NiFi 2 topology is set out in writing, covering cluster layout, coordination method (ZooKeeper or Kubernetes), TLS, identity provider, repository storage and Java 21 runtime. A non-production environment is built from the same design so that later tests run on infrastructure that matches production. The output is a target architecture document and a build record for the non-production environment.

  3. Upgrade to 1.27.0 and verify the baseline

    The existing 1.x cluster is moved to NiFi 1.27.0, the release the migration guidance requires before the jump to 2.0.0. Flows are run and checked against the inventory to confirm that data still moves, queues drain, and provenance and reporting behave as before. The output is a test report that records the 1.27.0 baseline, which later comparisons use as the reference.

  4. Convert flow configuration and remediate components

    The flow configuration is changed from flow.xml.gz to flow.json.gz as the guidance describes, and the team applies the NiFi 2 changes: replacing variable registry expression language references with the ENVIRONMENT scope, updating renamed distributed map cache components, and rebuilding or replacing custom processors that do not load on the new release. Each change is logged against the inventory line it resolves. The output is a change log that maps every edited component to its reason and reviewer.

  5. Test flows in a non-production cluster

    The converted flows are deployed to the NiFi 2 non-production cluster and run with representative data, including error paths, back-pressure, restarts and node failure. Output from the NiFi 2 run is compared with the 1.27.0 baseline for record counts, transformation results, latency and alerts. Gaps are fixed and retested until the flow owners accept the results. The output is a test report with pass, fail and accepted-deviation entries for each flow.

  6. Cut over with a tested rollback plan

    The cutover runbook sets the order of stopping flows, moving data and state, starting the NiFi 2 cluster, checking results and returning traffic. The rollback steps are rehearsed in the non-production environment, and the team confirms which backups and configuration copies are needed to restore 1.27.0 if a check fails. The step closes when the runbook is signed off by the business owner and the security lead, and the first production checks have passed.

The staged path from NiFi 1.x to NiFi 2 runs through a test cluster before cutover

The path starts with the existing NiFi 1.x production cluster, which is first upgraded to 1.27.0 so the flows can be verified on the stepping-stone release. The flow configuration is then converted from flow.xml.gz to flow.json.gz, and any removed variable registry references and renamed distributed map cache components are remediated. Flows are then loaded onto a parallel NiFi 2 test cluster running on Java 21, where outputs are compared against production before a decision to cut over or roll back.

Staged migration path from NiFi 1.x production to NiFi 2 cutover or rollback.

What changes inside your flows when you move to NiFi 2

The change that touches every flow first is the flow configuration file. NiFi 1.x stores the canvas in flow.xml.gz, and NiFi 2 uses flow.json.gz instead. The migration guidance requires moving to NiFi 1.27.0 before going to 2.0.0, so the conversion is a planned step in the upgrade path, not something to trigger by copying files. Reviewers should expect the stored flow to look different in any diff or backup, which makes side-by-side comparison of exported flows harder than it was. Confirm that your backup and change-review tooling can read the new format, and keep a copy of the 1.x flow.xml.gz until the cutover is signed off.

Parameter handling changes in two ways. The variable registry expression language scope is removed and replaced by an ENVIRONMENT scope, so any expression that relies on the old scope will not resolve as written. Distributed map cache components are also renamed, which means processors and controller services that reference them by their 1.x names need to be found and updated. Parameter contexts, which teams often use to promote flows between environments, should be audited for variables that were defined under the old scope. Ask for a list of every expression and cache reference in your flows, then test each one in a non-production instance rather than trusting a search of the canvas.

Custom code and runtime requirements are the third area. NiFi 2 requires Java 21 as the minimum runtime, so any custom processor NAR built for an older Java level must be rebuilt and retested against the new platform. Python-based processors need Python 3.10, 3.11 or 3.12, and the administration guide describes them as a beta feature, so treat them as a risk to review rather than a stable dependency. Confirm which of your processors are Java, which are Python, and which hosts provide a supported interpreter. Hosts and container images used for production should be checked against the Java and Python versions listed in the NiFi System Administrator's Guide before any flow is deployed to them.

What usually goes wrong in NiFi migrations and how to prevent it

What happens if we skip the 1.27.0 step and upgrade straight to NiFi 2?

Skipping the stepping stone is the most avoidable failure. The NiFi migration guidance requires upgrading to NiFi 1.27.0 before moving to 2.0.0, so a direct jump leaves the flow, configuration and components in a state the migration path does not cover. Prevent it by making 1.27.0 an explicit, separately tested milestone in the plan, with its own rollback point. Before cutover, confirm that the production-equivalent flows run cleanly on 1.27.0, that the cluster is healthy after the step, and that the team has written evidence of each upgrade stage. Check the NiFi migration guidance against your exact versions before scheduling the work.

Is converting flow.xml.gz to flow.json.gz just a simple file rename?

No. The change from flow.xml.gz to flow.json.gz is a format change that the migration process has to handle, and a renamed or hand-edited file will not reliably load. Prevent problems by using the documented migration path, keeping the original file under version control or in a backup, and never editing the JSON by hand. Before cutover, load the converted flow in a non-production instance, compare the component count, connections, controller services and parameter references with the source, and confirm that every processor starts or reports a clear, expected reason for not starting. Also review any scripts or tooling that read the old XML file, since they will need changes.

Why do expressions break after moving to NiFi 2 when they used the variable registry?

In NiFi 2.0 the variable registry expression language scope was removed and replaced by an ENVIRONMENT scope, so expressions that depended on the old scope may resolve to nothing or fail at runtime. Prevent this by searching every flow, parameter context and document for references to the old scope before you start, and by listing them as a migration work item with an owner. Verify before cutover by running each affected processor with representative input in the test environment and checking the output, not just whether the processor validates. Include scheduled and rarely used flows, because a failure in a monthly path can stay hidden until it matters.

Will our custom processors fail on Java 21 after the migration?

They can, and untested custom processors are a common cause of failed cutovers. NiFi's administration guide lists Java 21 as the minimum runtime, so custom NARs compiled for an older runtime, or depending on libraries that do not run on Java 21, need to be rebuilt and retested. Prevent this by inventorying every custom processor and controller service, recording its source, build target and third-party dependencies, and assigning an owner for each. Before cutover, rebuild each NAR against the target NiFi version, run its unit and integration tests, and exercise it inside a test cluster with real data shapes. Also confirm any optional Python-based processors use a supported Python version (3.10, 3.11 or 3.12), noting that the guide describes that feature as beta.

What rollback path do we need for provenance and queued data at cutover?

Cutover without a tested rollback path risks losing or stranding queued FlowFiles and provenance history. Prevent this by deciding, before the window, what happens to data in connections, which provenance records must be kept for audit, and how you will return to the previous version if the new cluster fails. Verify before cutover with a full backup of the flow configuration, repositories and parameter contexts, a documented restore procedure rehearsed in a test environment, and a drain plan that stops ingestion and empties or accounts for queues. Confirm with your compliance team how provenance retention is handled during the move, and agree who signs off the go or no-go decision.

Which migration risks can we check ourselves before we ask for outside help?

Many teams can do a meaningful inventory without a partner, and it makes any quote more accurate. Start with the items above: list every flow, custom component, expression that uses the old scope, distributed map cache reference, and authentication setup, then note which ones have no owner or test. Ask for an outside review if the inventory shows many custom NARs, unclear data ownership, or regulated data in flight. A fixed-scope engagement from DeployOpen would start from a written scope of these inventories and test plans, and cost follows from that scope, so the more complete your list, the more specific the quote. Ask any provider to confirm which NiFi versions and Java runtime they will test against.

What NiFi 2 costs to run after the migration

This table lists the recurring and one-time cost items of running NiFi 2 after cutover, who typically pays for each, and what drives it. The project license is zero, so the cost sits in infrastructure, runtimes, upgrades, custom code and people, which you should price against your own environment before comparing options.

Cost itemWho paysOne-time or recurring
Cluster infrastructure and repository storageYour organization, through your cloud account, data center or air-gapped hostsRecurring, sized by flow volume, retention and node count
Java 21 runtime and Python 3.10 to 3.12 maintenanceYour platform team, for patching the host OS and runtimeRecurring, tied to runtime patch cycles
Ongoing NiFi minor release upgradesYour team or a support partner, including test cycles before each rolloutRecurring, one cycle per adopted minor release
Custom processor rebuilds and retestingYour developers, each time NiFi APIs or NAR packaging changeRecurring, grows with the number of custom components
Staff time for flow operations and monitoringYour operations and data teams, for change control, incident response and flow editsRecurring, driven by flow count and change frequency
Migration testing and cutoverYour team or a partner, under a written fixed scopeOne-time, covers flow.json.gz conversion and component renames
Support agreementsYour organization, with a commercial partner or internal rotaRecurring if contracted, optional if handled in-house
NiFi software licenseNo charge from the Apache Software Foundation, under Apache-2.0 with no paid edition from the projectNot applicable

How the NiFi migration changes by starting point

A single-node NiFi 1.x instance is the simplest starting point, but it still needs the full stepping-stone path. The project's migration guidance requires upgrading to NiFi 1.27.0 before moving to 2.0.0, and the flow configuration file changes from flow.xml.gz to flow.json.gz. Scope is mostly the flow itself, the nifi.properties file and the repositories on disk.

  • Two upgrade hops: Plan the move to 1.27.0 as a separate, testable step before the move to NiFi 2.
  • Flow file conversion: Confirm how flow.xml.gz becomes flow.json.gz and review the converted file in a test environment before cutover.
  • Removed or renamed components: Inventory variables, templates and distributed map cache usage, since these changed in NiFi 2.0.
  • Java 21 runtime: Check that the host runs Java 21 and that any optional Python processors use Python 3.10, 3.11 or 3.12.
  • Rollback copy: Keep a copy of the 1.x repositories and configuration so the original instance can be restored.

Confirm with your team whether the single node has a backup of its repositories and whether a second, parallel NiFi 2 instance can be built for side-by-side comparison.

What your team must provide before a migration starts

Your team's inputs decide how much of the migration is discovery and how much is change. Start by providing read access to every 1.x flow, the flow.xml.gz flow configuration file, and the bootstrap.conf and nifi.properties files from each node. The migration guidance requires moving the flow configuration to flow.json.gz and upgrading to 1.27.0 before the 2.0.0 move, so the team needs the exact 1.x state on record to plan those steps. Also supply a list of custom processors and controller services with their NAR files and source repositories. Each one must be rebuilt or verified against NiFi 2 and Java 21, and a missing source tree turns that work into reverse engineering.

Next, name an owner for every flow, parameter context and integration endpoint, and make sure each owner can answer questions about expected data volumes, schedules and downstream consumers. Owners also confirm which 1.x features the flows depend on, such as variable registry references, which NiFi 2 replaces with the ENVIRONMENT scope, and distributed map cache components, which were renamed. Provide a non-production environment with representative data and realistic network paths to the same sources and sinks. A flow that only works on synthetic data will pass tests and then fail at cutover. Record the decisions that the team must make early: the target authentication provider among single-user, LDAP, OpenID Connect, SAML 2.0 and X.509 client certificates, and the cutover window agreed with the business owners.

Finally, agree in writing who approves the test evidence and what counts as a pass. The approver should be someone who can accept or reject a flow's output, not only the person who ran the tests. Confirm the approval steps before any production change, so that rollback criteria are fixed in advance. Ask the migration provider to show how these inputs map to a fixed-scope plan with dated deliverables. Your team should confirm the current end-of-support status and any upgrade notes with the Apache NiFi download page before the plan is signed off.

Questions buyers ask before hiring help for a NiFi migration

What drives the cost of a NiFi 1.x to 2.x migration, and can I get a fixed-scope quote?

Cost follows the size and state of your flows, not a standard package. The main drivers are the number of process groups and flows, how many use removed variables, templates or renamed distributed map cache components, how many custom processors you run, the number of environments, and how much testing your business expects before cutover. Most engagements are fixed-scope: DeployOpen agrees the scope, deliverables and timeline in writing before work starts, and provides a quote from that written scope. DeployOpen does not publish a price list. Ask any provider for the inventory they assumed, the items excluded, who performs testing, and what happens if the inventory changes during the work.

How long does a NiFi 2 migration take?

The duration depends on your inventory, so no fixed figure applies to every environment. Before estimating, the team needs a complete list of flows, controller services, parameter contexts, custom NARs and cluster topology, plus a view of which components are deprecated or renamed in NiFi 2. The official path requires moving to NiFi 1.27.0 before 2.0.0 and converting the flow configuration file from flow.xml.gz to flow.json.gz, so each environment has its own sequence. Ask for a written timeline that lists the inventory step, the test cycles and the cutover window as separate milestones.

Can my team migrate NiFi 1.x to 2.x without outside help?

Yes, many teams do, provided they have engineers who understand their flows and can run a parallel test environment. The official migration guidance gives the required steps, but it does not replace a review of your own flows. Teams usually need time to find affected components, rebuild custom processors against the NiFi 2 APIs, rework clustering and security settings, and rehearse rollback. Outside help is most useful when internal staff are already committed to production work or when the flow estate is large. Compare the effort against your own staff plan before deciding.

What does the migration need from my staff?

Expect to provide flow owners who can explain intent and expected data, an administrator for each environment, and someone who can approve changes to production sources and destinations. Security and identity staff should confirm the authentication method you plan to use, since NiFi supports single-user, LDAP, OpenID Connect, SAML 2.0 and X.509 client certificate authentication, while the Kerberos provider is deprecated. Platform staff provide hosts, storage, Java 21 and the Python version if you use Python-based processors, which the administration guide describes as a beta feature. Agree these responsibilities in the written scope so testing does not stall on access requests.

Does NiFi Registry or Git-versioned flow management change the migration plan?

It can, because flow versions and promotion paths shape how you test and roll back. NiFi Registry has been deprecated and is planned for removal in NiFi 3.0, so flows versioned there need a documented path before cutover. NiFi 2 includes Flow Registry Clients for GitHub and GitLab that store flows in a Git repository. If you already version flows in Git, confirm that the migrated flows match the repository state and that the promotion process still works. If you use NiFi Registry, plan the move as part of the migration scope rather than as a separate later task.

What happens if we stay on NiFi 1.x?

NiFi 1.x can no longer be maintained further in the project, because it depends on Jetty 9.4, Spring Framework 5.3 and AngularJS 1.8, which cannot be upgraded within that line. The NiFi downloads page states that NiFi 1.28 is the last minor release of the version 1 series and lists an end-of-support date of December 8, 2024 for 1.28.1. The project strongly encourages users to upgrade to NiFi 2. Staying on 1.x means you run software that no longer receives upstream fixes, so your own team would need to assess and carry the risk. Confirm with your security and compliance owners how that position fits your policies.

How DeployOpen scopes, delivers and hands over a NiFi migration

DeployOpen approaches a NiFi 1.x to 2.x migration as a fixed-scope piece of work agreed in writing before any flow is touched. We inventory the existing flows and environments, move them through the required steps, and test each flow in a non-production copy before cutover.

How we scope

  • Inventory every 1.x flow, controller service, parameter context and environment to size the migration before quoting.
  • Identify components renamed or removed in NiFi 2, including variable registry expressions and distributed map cache components.
  • Agree in writing which flows, environments, deliverables and timelines are covered, then price from that written scope.

How we build

  • Plan the staged path through NiFi 1.27.0 before moving to 2.x, and confirm the Java 21 runtime and Python version for any Python processors.
  • Convert flow.xml.gz to flow.json.gz on a copy, then review each converted flow for changed or removed components.
  • Test flows in a non-production environment with representative data, documenting results and fixes before the cutover plan is approved.

How we hand over

  • Provide a cutover runbook with rollback steps, component mapping tables and the test evidence behind each migrated flow.
  • Document the target configuration, including authentication, TLS settings and any Flow Registry Client setup your team will maintain.
  • Walk your operations and engineering staff through the new flows and the changes they need to know before running them.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers.
  • Ask a potential partner what a retainer covers after cutover, including minor release tracking and rebuilding custom processors.
  • Confirm with your team which post-cutover tasks stay internal and which move under a support agreement before signing.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.