Hi Robert, Seems like the documentation has not been updated. I'm going to file a JIRA ticket to apply doc update about how we can import NiFi 2 exported flow files into MiNiFi. In a nutshell: before moving the json file into minifi, we should convert it with minifi toolkit. Related ticket for more details: https://issues.apache.org/jira/browse/NIFI-12644
Regards, Peter Robert Cohen <robert.co...@anu.edu.au.invalid> ezt írta (időpont: 2024. dec. 12., Cs, 2:11): > 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? > >