Member since
05-22-2019
2
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3528 | 05-23-2019 01:16 PM |
05-23-2019
01:16 PM
Hey guys, I figured out the solution to obstacle #2. The issue is that PG's with other PG's inside of them will have links to the registry in the snapshot. Pulling these from Github will not replace the registry link, so I wrote a script to do that for me: #!/bin/bash
pushd flow_storage
# This registry is only supposed to read changes from the Github repo, so I clear out the repository of any local changes
git stash
git reset --hard origin/master
git pull
# Replace old registry urls with the new one for all occurrences in the repo
find ./**/* -name "*" -exec sed -i 's/<old registry url>/<new registry url>' \{\} \;
# Changes MUST be committed in order for the registry to recognize them
git add .
git commit -m "Local Change"
popd
rm database/nifi-registry-primary.mv.db
./bin/nifi-registry.sh restart Run this script in the nifi-registry root folder to pull in the Github master branch. Note that this script will get rid of any changes you have in the flow_storage folder, so store local commits elsewhere if you need to!
... View more