For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Check the current Apache NiFi service configuration.

    sudo systemctl status nifi.service
  2. Check the service configuration to identify the current Apache NiFi installation path.

    sudo systemctl cat nifi.service
  3. Identify the new Apache NiFi installation path. For example: Old Path:

    /home/ovaledge/nifi/nifiinstall/nifi-1.16.3

    New Path:

    /home/ovaledge/nifi_client/nifi-1.25.0

Update the Existing Cron Job

  1. Open the root crontab.

  2. Locate the existing AutoNAR cron entry and replace the old Apache NiFi path with the new path. Old cron entry:

    Updated cron entry:

Update all references to the old Apache NiFi path in the cron entry, including the script path, NiFi installation path, and log file path.

Verify the Cron Job

  1. After saving the crontab, verify that the updated AutoNAR cron entry is present.

  2. Confirm that the cron entry points to the new Apache NiFi installation directory.

Verify Script Permissions

  1. Verify that the AutoNAR script is executable.

  2. Verify that the script exists.

Test the AutoNAR Setup

Test the restart and NAR update functionality from the OvalEdge application.

Restart the Bridge Client

  1. Log in to the OvalEdge application.

  2. Navigate to Administrator > Connectors > Manage Bridge.

  3. Click Restart Bridge.

  4. In the confirmation prompt, click Yes.

  5. Wait approximately 5 minutes for the restart process to complete.

Update the NAR File

  1. Click Update Bridge.

  2. Enter the S3 link for the NAR file.

  3. Click Update.

  4. 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

  1. After the next scheduled cron execution, check the AutoNAR cron log.

  2. Confirm that the AutoNAR script executes successfully without errors.


Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?