Reg:Nifi registery

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Reg:Nifi registery

Prashanth Reddy
Hi

i am much interested in working with nifi and registry.but i am unable to
find backing up stored flows and how to reuse them when new registry
crashes (old one system crashes).

Best Regards,
Prashanth
Reply | Threaded
Open this post in threaded view
|

Re: Reg:Nifi registery

Kevin Doran-2
Hi Prashanth,

By default, NiFi Registry stores all data (flows, metadata, etc) in
sub directories of its home directory (the install dir, which has sub
dirs such as /conf, /lib, and /bin), so as long as you are taking
regular backups of that directory you should be able to restore from a
backup.

An alternative approach some people use is to use the
GitFlowPersistenceProvider configured with a remote git repository,
which means every flow is also synced to a remote github repository.
This backup of flows can be used for disaster recovery in a few ways:
- not released yet, but on master coming in the next release is a
feature that will repopulate NiFi Registry's metadata directory from a
git repository on startup
- scripted using a tool such as the NiFi CLI, included in the NiFi Toolkit
- some other approaches people have come up with, for example docker
images with additional scripts that let a Registry container be
initialized from a git repo and I believe there is a PR open now that
adds additional capabilities to a git-backed Registry.

Hope this helps! Let us know if you have additional questions.

Kevin

On Wed, Apr 3, 2019 at 8:28 AM Prashanth Reddy
<[hidden email]> wrote:
>
> Hi
>
> i am much interested in working with nifi and registry.but i am unable to
> find backing up stored flows and how to reuse them when new registry
> crashes (old one system crashes).
>
> Best Regards,
> Prashanth