Updating references to cluster nodes

You must update the references to source cluster nodes with destination cluster nodes in the flow.xml.gz file.

You have removed unnecessary reporting tasks and updated the Registry Client information.

  1. Unzip flow.xml.gz.
  2. Search and replace URLs that refer to the source NiFi nodes with the equivalent destination NiFi nodes. For example, in a Remote Process Group:
    
    <remoteProcessGroup>
          <id>c8647bee-0172-1000-0000-00001ff1d10f</id>
          <name>NiFi Flow</name>
          <position x="968.0" y="520.0"/>
          <comment/>
          <url>https://remote_instance_host:8443/nifi</url>
          <urls>https://remote_instance_host:8443/nifi</urls>
          <timeout>30 sec</timeout>
          <yieldPeriod>10 sec</yieldPeriod>
          <transmitting>false</transmitting>
          <transportProtocol>HTTP</transportProtocol>
          <proxyHost/>
          <proxyUser/>
          <inputPort>
            <id>6ade8167-dc3c-3afc-b22e-f38465fdf601</id>
            <name>File Listing</name>
            <position x="0.0" y="0.0"/>
            <comments/>
            <scheduledState>STOPPED</scheduledState>
            <targetId>c85b69ba-0172-1000-0000-000077bde971</targetId>
            <maxConcurrentTasks>1</maxConcurrentTasks>
            <useCompression>false</useCompression>
            <batchCount>1</batchCount>
          </inputPort>
        </remoteProcessGroup>
    
  3. Save your changes.
  4. Zip the flow.xml file:
    gzip flow.xml

When you have finished updating the cluster node references, proceed by updating a flow with sensitive properties.