HCL Commerce Version 9.1.8.0 or later

Applying an Ingest Connector patch to NiFi

Complete the following steps to apply an ingest connector patch to NiFi.

About this task

In previous versions, following the update of your NiFi registry you had to also update the ingest API. It was necessary to run the upgrade API to synchronize with the update registry and manually rebuild your connectors before any changes would be live. Now, rather than rebuilding your connectors, you can select the particular pipe you want to update and change the version there. A new Ingest endpoint is provided, upgradeVersion, that automatically updates the version number. Since the scheduler runs every five minutes, the registry is not only capable of importing patches, it can also export what has recently been changed. If you enable this capability, the exported material will appear in the export directory five minutes after the update.

Procedure

  1. Open a web browser and log in to the My HCLSoftware portal website to download the code patch JAR.
  2. You have two options for patching connectors:
    1. Option 1: Use the Ingest API to upgrade connectors Managing connectors in the Ingest service.
      Note: If you have customizations, merge them into the JSON files before proceeding.
    2. Option 2: Recreate all connectors.
      1. Log in to the NiFi container as root
        docker exec -it --user root commerce_nifi_1 bash
      2. Remove docker data:
        data: rm -rf dockerdata/*
      3. Restart NiFi and Ingest. Doing this will re-create the connectors from the Ingest JSON files. This may take several minutes to complete.