Created 04-25-2019 12:41 PM
I'm using GitFlowPersistenceProvider in NiFi Registry 0.3. Today I created another NiFi Registry and I wanted to load all flows from the previous one using the same provider. Unfortunately nothing happens - any buckets nor flows aren't recreated. I tried to create all buckets manually but even then any flows aren't imported.
GitFlowPersistenceProvider documentation states:
When NiFi Registry starts, this provider reads through Git commit histories and lookup these bucket.yml files to restore Buckets and Flows for each snapshot version.
What should I do to load existing flows into new NiFi Registry using GitFlowPersistenceProvider?
Created 04-28-2019 06:54 AM
HI @Maciej Michalec,
have you properly initialized the git / bucket folder?
In order to use GitFlowPersistenceRepository
, you need to prepare a Git directory on the local file system. You can do so by initializing a directory with git init
command, or clone an existing Git project from a remote Git repository by git clone
command.
Created 05-28-2019 09:54 AM
Hello, @Raymond Honderdors,
Yes, I had properly initialized git repository. Unfortunately answer from StackOverflow shows that restoring NiFi Registry without database object isn't possible, so documentation gives wrong information.
Created 05-28-2019 10:12 AM
@Maciej Michalec i found a related article https://issues.apache.org/jira/browse/NIFIREG-209 - Support rebuilding
metadata DB from Git repo.
with thanks to @Michal Klempa who created a working docker image "https://hub.docker.com/r/michalklempa/nifi-registry"
the Fix was released as part of version 0.4.0 (May 21, 2019)