DEV Community

Timothy Spann.   πŸ‡ΊπŸ‡¦
Timothy Spann. πŸ‡ΊπŸ‡¦

Posted on β€’ Originally published at datainmotion.dev on

3 2

Using NiFi CLI to Restore NiFi Flows From Backups

Using NiFi CLI to Restore NiFi Flows From Backups

Please note, Apache NiFi 1.11.0 is now available for download.

https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version1.11.1

https://pierrevillard.com/2018/04/09/automate-workflow-deployment-in-apache-nifi-with-the-nifi-registry/comment-page-1/

https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html#nifi_CLI

> registry list-buckets -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080

Name Id Description


1 IOT 45834964-d022-4f4c-891f-695898e1e5f0 (empty)

2 IoT 250a5ae5-ced8-4f4e-8b3b-01eb9d47a0d9 (empty)

3 dev 46b7bab7-400f-44ae-a0e6-7340ff19c96f (empty)

4 iot c594d6bc-7413-4f6a-ba9a-50b8020eec37 (empty)

5 prod 0bf59d2e-1dd5-4d24-8aa0-0614bf991dc9 (empty)

registry create-flow -verbose -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -b 250a5ae5-ced8-4f4e-8b3b-01eb9d47a0d9 --flowName iotFlow

a5a4ac59-9aeb-416e-937f-e601ca8beba9

registry import-flow-version -verbose -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -f a5a4ac59-9aeb-416e-937f-e601ca8beba9 -i iot-1.json

1

> registry list-flow-versions

ERROR: Error executing command 'list-flow-versions' : Missing required option 'baseUrl'

> registry list-flows -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080

ERROR: Error executing command 'list-flows' : Missing required option --bucketIdentifier

> registry list-flows -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -b 250a5ae5-ced8-4f4e-8b3b-01eb9d47a0d9

Name Id Description


1 iotFlow a5a4ac59-9aeb-416e-937f-e601ca8beba9 (empty)

> registry create-flow -verbose -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -b 250a5ae5-ced8-4f4e-8b3b-01eb9d47a0d9 --flowName iot-1

71c09a57-0291-4b7f-bed1-0d9269aec846

> registry import-flow-version -verbose -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -f 71c09a57-0291-4b7f-bed1-0d9269aec846 -i iot-1.json

1

> registry import-flow-version -verbose -u http://ec2-35-171-154-174.compute-1.amazonaws.com:18080 -f 71c09a57-0291-4b7f-bed1-0d9269aec846 -i iot-1.json

3

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay