pvillard31 commented on PR #8611:
URL: https://github.com/apache/nifi/pull/8611#issuecomment-2043063358

   Example of command and output:
   
   - With force and scoped to a given process group
   
   ````
   ./cli.sh nifi pg-change-all-versions --baseUrl 
https://localhost:8443/nifi-api/ --truststore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/truststore.p12
 --truststoreType PKCS12 --truststorePasswd 39dfd2623cc2f14e9c78b391ce2d8bee 
--keystore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/keystore.p12
 --keystoreType PKCS12 --keystorePasswd 43823e27844853e450f895689d3d986f 
--keyPasswd 43823e27844853e450f895689d3d986f --flowIdentifier 
e76e8b1a-3a02-4fe9-ba4f-f559acb151f9 --force --processGroupId 
a9cd774d-018e-1000-3acc-544a3caaf5d5
   
   #   Name              Id                                     Prev Version   
New Version   Message
   -   ---------------   ------------------------------------   ------------   
-----------   
----------------------------------------------------------------------------------------------------
   1   MyVersionedFlow   a9ced459-018e-1000-ab85-352acdd238f9   3              
3             Process group already at desired version
   2   MyVersionedFlow   a9ce7d38-018e-1000-14af-e9ff25e6d759   1              
null          Failed to perform update flow request due to 
StandardProcessGroup[identifier=a9ce7d38-018e-1000-14af-e9ff25e6d759,name=MyVersionedFlow]
 cannot be updated to the proposed flow because the proposed flow does not 
contain a match for Connection[ID=5b0c4128-d73b-352d-50f6-a8d325a7be32, Source 
ID=6d6ef667-f560-3637-5fc3-1c26901ff799, Dest 
ID=48817384-4031-332e-837d-1bdc298325b6] and the connection currently has data 
in the queue.
   ````
   
   - Without force and without scoping to a process group
   
   ````
   ./cli.sh nifi pg-change-all-versions --baseUrl 
https://localhost:8443/nifi-api/ --truststore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/truststore.p12
 --truststoreType PKCS12 --truststorePasswd 39dfd2623cc2f14e9c78b391ce2d8bee 
--keystore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/keystore.p12
 --keystoreType PKCS12 --keystorePasswd 43823e27844853e450f895689d3d986f 
--keyPasswd 43823e27844853e450f895689d3d986f --flowIdentifier 
e76e8b1a-3a02-4fe9-ba4f-f559acb151f9
   
   #   Name              Id                                     Prev Version   
New Version   Message
   -   ---------------   ------------------------------------   ------------   
-----------   
----------------------------------------------------------------------------------------------------
   1   MyVersionedFlow   a9ce9e63-018e-1000-59ed-2cb11e96d2df   2              
null          Failed to perform update flow request due to 
StandardProcessGroup[identifier=a9ce9e63-018e-1000-59ed-2cb11e96d2df,name=MyVersionedFlow]
 cannot be updated to the proposed flow because the proposed flow does not 
contain a match for Connection[ID=d2122b84-ce83-3958-2de4-bcfb33f2a496, Source 
ID=944a1a3c-0d47-35de-5522-069527d99531, Dest 
ID=e5fde182-1ded-3fdb-725b-2294382a69f9] and the connection currently has data 
in the queue.
   ````
   
   - Downgrade by specifying the flow version
   
   ````
   ./cli.sh nifi pg-change-all-versions --baseUrl 
https://localhost:8443/nifi-api/ --truststore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/truststore.p12
 --truststoreType PKCS12 --truststorePasswd 39dfd2623cc2f14e9c78b391ce2d8bee 
--keystore 
/Users/pierre/dev/github/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/conf/keystore.p12
 --keystoreType PKCS12 --keystorePasswd 43823e27844853e450f895689d3d986f 
--keyPasswd 43823e27844853e450f895689d3d986f --flowIdentifier 
e76e8b1a-3a02-4fe9-ba4f-f559acb151f9 --force --flowVersion 1
   
   #   Name              Id                                     Prev Version   
New Version   Message
   -   ---------------   ------------------------------------   ------------   
-----------   
----------------------------------------------------------------------------------------------------
   1   MyVersionedFlow   a9ce9e63-018e-1000-59ed-2cb11e96d2df   2              
null          Failed to perform update flow request due to 
StandardProcessGroup[identifier=a9ce9e63-018e-1000-59ed-2cb11e96d2df,name=MyVersionedFlow]
 cannot be updated to the proposed flow because the proposed flow does not 
contain a match for Connection[ID=0a4f1e3e-b062-381f-2838-05aac3d384e0, Source 
ID=944a1a3c-0d47-35de-5522-069527d99531, Dest 
ID=781e060f-6b00-37de-acd7-4e6cb68087b2] and the connection currently has data 
in the queue.
   2   MyVersionedFlow   a9cdb690-018e-1000-9ab0-66411f5398d9   3              
1             SUCCESS
   3   MyVersionedFlow   a9ced459-018e-1000-ab85-352acdd238f9   3              
1             SUCCESS
   4   MyVersionedFlow   a9ce7d38-018e-1000-14af-e9ff25e6d759   1              
1             Process group already at desired version
   ````


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to