Set Up NiFi in Pulse

This page explains how to set up NiFi in Pulse by installing the Acceldata NAR, configuring the reporting task, verifying data collection, and completing cluster setup in Pulse.

Configure NiFi Changes on NiFi Node and UI

Prerequisites

Obtain the ad-nifi-1.0.nar download link from the Acceldata team using the provided credentials.

Add NiFi NAR Files

  1. On each NiFi node, copy the ad-nifi-1.0.nar file.
  2. Place the file in the NiFi library classpath.

For example: /usr/odp/current/nifi/lib/

  1. Verify the NiFi library location to confirm where the Acceldata NAR file must be placed.

Restart NiFi Services

Restart all NiFi services to load the NAR file.

Configure Acceldata Reporting Task

  1. In the NiFi UI, navigate to Controller Settings > AccelDataReportingTask.
  1. Set the property values as described below.
FieldDescription
Monitor Group NameEnter the cluster name as defined during Pulse installation.
Acceldata Influx Metric Collector URLAdd the VictoriaMetrics insert URL of the Acceldata NiFi Metric Collector.
Elasticsearch Concurrent ThreadsEnter the number of threads to push data to Elasticsearch.
Elasticsearch Batch SizeEnter the Elasticsearch batch size per thread.
Max Provenance EventsEnter the number of events that trigger data collection.
Influx Batch SizeEnter the Influx batch size.
Influx Batch Flush DurationEnter the flush duration for Influx batches, in milliseconds.

Verify Configuration

  • Check that VictoriaMetrics is updated with the prefix <groupname>.
  • Verify that Elasticsearch contains an index with the name <groupname>.

The prefix must correspond to the cluster name you added in Pulse, located under the Pulse node: $AcceloHome/work/<clustername>.

Configure NiFi in Pulse

Create a NiFi Hosts File

This step applies only to NiFi on Standalone Clusters.

Manually creating the NiFi hosts file applies only to standalone clusters. On ODP/HDP (Ambari) and CDP/CDH (CM), Pulse fetches host details automatically.

  1. On the Pulse Node, create a nifihosts file in the directory /data01/acceldata/.
  2. In the nifihosts file, add one NiFi IP or host per line with port details.

For example:

Bash
Copy

Note If the port is not specified, Pulse uses the default port (for example, 9090 for alerts endpoints).

  1. Enter the /data01/acceldata/nifihosts path when asked during the Pulse configuration.

Configure Pulse Core Component

  1. Run accelo config cluster
  2. Select the distribution and enter the NiFi details when asked during the configuration.
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard