Linux
Update Existing AutoNAR Cron Job with the New NiFi Installation Path on Linux
This article outlines the procedure for updating an existing AutoNAR cron job when the Apache NiFi installation path changes on a Linux server. This procedure replaces references to the old NiFi installation path with the new NiFi path. It also includes steps to verify the cron configuration, script permissions, AutoNAR operation, and cron logs.
Prerequisites
Ensure the following prerequisites are met before starting the procedure:
Access to the Linux server hosting the Apache NiFi installation.
Sudo privileges to view the NiFi service configuration and edit the root crontab.
Access to the new Apache NiFi installation directory.
Access to the OvalEdge application with permission to manage the Bridge Client.
The NAR file S3 link required to test the NAR update.
Steps Involved
Identify the Existing NiFi Path
Check the current Apache NiFi service configuration.
sudo systemctl status nifi.serviceCheck the service configuration to identify the current Apache NiFi installation path.
sudo systemctl cat nifi.serviceIdentify the new Apache NiFi installation path. For example: Old Path:
/home/ovaledge/nifi/nifiinstall/nifi-1.16.3New Path:
/home/ovaledge/nifi_client/nifi-1.25.0
Update the Existing Cron Job
Open the root crontab.
Locate the existing AutoNAR cron entry and replace the old Apache NiFi path with the new path. Old cron entry:
Updated cron entry:
Verify the Cron Job
After saving the crontab, verify that the updated AutoNAR cron entry is present.
Confirm that the cron entry points to the new Apache NiFi installation directory.
Verify Script Permissions
Verify that the AutoNAR script is executable.
Verify that the script exists.
Test the AutoNAR Setup
Test the restart and NAR update functionality from the OvalEdge application.
Restart the Bridge Client
Log in to the OvalEdge application.
Navigate to Administrator > Connectors > Manage Bridge.

Click Restart Bridge.

In the confirmation prompt, click Yes.

Wait approximately 5 minutes for the restart process to complete.
Update the NAR File
Click Update Bridge.

Enter the S3 link for the NAR file.

Click Update.
Wait approximately 5 minutes for the NAR file update and Apache NiFi client restart to complete.

Expected Result
The Bridge Client restarts successfully, and the NAR file update completes without errors.
Verify the Cron Log
After the next scheduled cron execution, check the AutoNAR cron log.
Confirm that the AutoNAR script executes successfully without errors.
Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

