You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/04/19 17:28:00 UTC

[jira] [Commented] (NIFI-11327) Add Export/Import All - NiFi CLI - NiFi Registry

    [ https://issues.apache.org/jira/browse/NIFI-11327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17714229#comment-17714229 ] 

ASF subversion and git services commented on NIFI-11327:
--------------------------------------------------------

Commit 3df8c9d2acd6af77b41f5464b1bd2f2adc0ce2b6 in nifi's branch refs/heads/main from timeabarna
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3df8c9d2ac ]

NIFI-11327 Add Export/Import All - NiFi CLI - NiFi Registry (#7092)

* NIFI-11327 Add Export/Import All - NiFi CLI - NiFi Registry
* NIFI-11327 Addressing review comment, updating storage location, improving serialization
* NIFI-11327 Addressing review comments, updating Rest endpoints and storage location handling
* NIFI-11327 Restoring EventType to its original version
* NIFI-11327 Addressing review comments changing skipExisting, updating documentation, adding some more error handling

> Add Export/Import All - NiFi CLI - NiFi Registry
> ------------------------------------------------
>
>                 Key: NIFI-11327
>                 URL: https://issues.apache.org/jira/browse/NIFI-11327
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Timea Barna
>            Assignee: Timea Barna
>            Priority: Major
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> In NiFi Toolkit, in the CLI, we currently have the following commands available:
> registry list-buckets
> registry list-flows
> registry list-flow-versions
> registry export-flow-version
> We should have a command registry export-all-flows that does the following:
> List all the buckets, for each bucket, list all flows, for each flow, list all versions and export each version. All files should be landing in a target directory provided as an argument of the function.
> We also current have the following commands:
> registry create-bucket
> registry create-flow
> registry import-flow-version
> We should have a commend registry import-all-flows that does the following:
> It takes a directory as input (the one created by the export-all-flows command), and goes through the files to create the corresponding buckets, flows and flows versions.
> The original author, bucket id and flow id need to be kept.
> Use cases:
> * use case 1: NiFi 1 -> connecting to NiFi Registry 1, "re-initialising" an existing NiFi Registry, the NiFi Registry does not change, only its configuration.
> - export everything
> - change the NR flow definition repo backend from local FS to database (for example), or from git to database, etc
> - import everything
> the existing NiFi instance should not see any change
> * use case 2: NiFi 1 -> Registry 1, NiFi 2 -> Registry 2, Disaster Recovery kind of thing between two different sites.
> - export everything from NR1
> - import everything into NR2
> - If the import into NR2 is adding new versions, then NiFi 2 should be able to update an existing PG to a newer version of the flow.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)