Loading a new dataflow for MiNiFi
You can load a new dataflow for a MiNiFi instance to run using two methods.
Automatic flow delivery (using Edge Flow Manager)
When the MiNiFi Java Agent is connected to Edge Flow Manager, flow updates are delivered automatically after you publish it in Edge Flow Manager. You do not need to replace configuration files or restart the agent.
- The agent receives the updated flow definition during its next heartbeat cycle.
- If the flow contains asset references in parameters, the agent
resolves them to local paths under the directory configured by the
c2.asset.repository.directoryproperty. - The agent applies the new flow without requiring a restart.
Resources assigned to the agent class through the Edge Flow Manager Resource Manager are synchronized with the agent in the background. This synchronization occurs independently of flow updates, regardless of whether the resources are referenced by a flow.
Manual flow replacement
You can manually load a new dataflow by replacing the flow configuration file:
- Create a new
flow.json.rawfile with the new dataflow. - Replace the existing
flow.json.rawinminifi/confwith the new file. - Restart MiNiFi.
