Support Questions

Find answers, ask questions, and share your expertise

Upgrading Nifi to 1.17.0+

avatar
New Contributor

Hello,

I understand the tar.gz download option is no longer included. I need to figure out how this fits in with our upgrade process. The current steps as show below:

 

 

# set vars for current and desired version
OLD=1.16.3
NEW=1.17.0

# Download files and set permissions
wget https://dlcdn.apache.org/nifi/$NEW/nifi-$NEW-bin.tar.gz
tar xzvf nifi-$NEW-bin.tar.gz
sudo chown -R root:root nifi-$NEW
sudo mv nifi-$NEW /opt/nifi/nifi-$NEW

# Compare bootstrap files. Copy old file to new location.
diff /opt/nifi/nifi-$OLD/conf/bootstrap.conf /opt/nifi/nifi-$NEW/conf/bootstrap.conf
sudo cp /opt/nifi/nifi-$OLD/conf/bootstrap.conf /opt/nifi/nifi-$NEW/conf/bootstrap.conf

# compare nifi.properties files.
# You will need to edit the new nifi.properties and add the nifi.sensitive.props.key to access secrets.
diff /opt/nifi/nifi-$OLD/conf/nifi.properties /opt/nifi/nifi-$NEW/conf/nifi.properties

# copy old flow files to new version
sudo cp /opt/nifi/nifi-$OLD/conf/flow.xml.gz /opt/nifi/nifi-$NEW/conf/

# download kite NAR for converting records
sudo wget https://repo1.maven.org/maven2/org/apache/nifi/nifi-kite-nar/$NEW/nifi-kite-nar-$NEW.nar /opt/nifi/nifi-$NEW/lib/

# The /etc/init.d/nifi file causes apt-get some trouble. Delete it before running updates.
sudo rm /etc/init.d/nifi
sudo systemctl daemon-reload
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove

# install init.d file again, stop old nifi
sudo /opt/nifi/nifi-$OLD/bin/nifi.sh install
sudo systemctl daemon-reload
sudo systemctl stop nifi

# install init.d for new nifi and reboot server
sudo /opt/nifi/nifi-$NEW/bin/nifi.sh install
sudo systemctl daemon-reload
sudo /sbin/shutdown -r now

 

 

 

I was able to wget https://dlcdn.apache.org/nifi/1.17.0/nifi-1.17.0-source-release.zip unzip and move the files to the /opt/nifi/ directory but I am wondering if the correct directory where the old bootstrap files should live is /opt/nifi/nifi-1.17.0/nifi-toolkit/nifi-toolkit-admin/src/test/resources/conf as there's no longer something like /opt/nifi/nifi-1.17.0/conf/ ? And then copy the flow files into /nifi-1.17.0/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/? Thanks in advance for any guidance. 

1 REPLY 1

avatar
New Contributor

Ignore me, brainfart I didn't realize I downloaded the source code...