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

Bryan Bende commented on NIFI-5029:
-----------------------------------

[~kalemba] thanks for reporting your issue, this ticket was really about how 
the CLI handles embedded process groups, which that part admittedly doesn't 
work, but from using a single registry with multiple NiFis, I wasn't aware of 
any major issues. Here is a test I just did using two local NiFi instances and 
a single registry, running latest code (1.10.0-SNAPSHOT NiFI and 0.4.0 
registry)...
 # NiFi-1 Create PGA
 # NiFI-1 Create PGB inside PGA
 # NiFI-1 Create some processors inside PGB
 # NIFI-1 Start version control PGB
 # NIFI-1 Start version control PGA
 # NIFI-2 Import a new PG and select PGA v1 (at this point the same exact flow 
is now in both NiFi's)
 # NIFI-1 Go into PGB and add additional processor
 # NIFI-1 Commit changes on PGB
 # NIFI-1 Commit changes on PGA
 # NIFI-2 Change version on PGA from v1 to v2 (caused PGB to be updated to v2 
since PGA v2 points to PGB v2)

This all seemed to work correctly for me.

Is there something different about my steps from what you have done?

What versions of NiFi and NiFi Registry are you using?

 

> CLI - Handling of embedded versioned process groups during export/import
> ------------------------------------------------------------------------
>
>                 Key: NIFI-5029
>                 URL: https://issues.apache.org/jira/browse/NIFI-5029
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Flow Versioning, SDLC, Tools and Build
>            Reporter: Pierre Villard
>            Priority: Major
>              Labels: SDLC
>
> I'm in a situation where, in my dev environment, I have a versioned process 
> group A in bucket bA containing an embedded process group B from bucket bB. 
> Both A and B are versioned in the NiFi Registry of my dev environment.
> I'm using the CLI to export both A and B from my dev Registry, and then 
> importing A and B in my prod Registry. The issue is that in the json 
> representing A, there is a reference to B containing the url of the dev 
> Registry, the bucket ID and the workflow ID representing B.
> To import B in my prod registry, I first created a bucket bB and a workflow 
> B. New UUIDs have been generated for both in the prod registry. Then I did 
> the import of the JSON representing B.
> Now I manually update the JSON representing A to set the UUIDs related to B 
> with the new values of my prod registry. Then I created a bucket and a 
> workflow for A in my prod registry, and did the import.
> Problem occurs when I try to import the process group A in my prod NiFi. 
> It'll fail with an error looking like this:
> {code:java}
> #> nifi pg-change-version -fv 2 -pgid &1 -u http://localhost:8080
> > Using a positional back-reference for 'A'
> ERROR: Error executing command 'pg-change-version' : Error updating version 
> control information: The Flow Registry with ID 
> 56a49113-0162-1000-0a7e-4959d312d445 reports that no Flow exists with Bucket 
> 9d87ccc4-7084-4069-850a-7704135ea9e9, Flow 
> 7e47aeba-4908-41a6-88d7-e6deb1abef98, Version 2{code}
> I guess there are multiple ways of handling it. It could be on the CLI side 
> or on the Registry side (could be related to NIFIREG-148).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to