Im having trouble getting code into minifi 2 from nifi 2.
The documentation here
https://github.com/apache/nifi/blob/main/minifi/minifi-docs/src/main/markdown/minifi-java-agent-quick-start.md
says
# Export the dataflow in JSON format.
# Move your new .json file to |minifi/conf|.
# Rename your .json file /flow.json.raw/.
Im using the option in nifi to "download flow definition"
However when I load that into minifi, I get an error message.
java.lang.Exception: Unable to load flow due to:
org.apache.nifi.controller.serialization.FlowSerializationException:
Could not parse flow as a VersionedDataflow
When I compare the file to the dummy flow file that ships with minifi.
The file that ships with minifi starts with
{
"encodingVersion": {
"majorVersion": 2,
"minorVersion": 0
},
But the export from nifi has
{"flowContents":{"identifier":"a2ac574c-635d-3df5-baf0-6cbf4dd5bdec",
So the 2 files dont appear to be the same format.
Is there some other method of exporting code from nifi that Im missing?