NiFi actions
This article describes the main actions available for working with the service using the Actions icon in ADCM.
To go to the actions in the service, do the following:
-
On the CLUSTERS tab click on the row with the cluster.
-
In the cluster menu that opens, go to the Services page.
-
Click on the Actions icon
in the row corresponding to the NiFi service and choose the desired action.

To view the results of an action, go to JOBS and click on the name of the corresponding action or on its component.

Next, the page with the results of the action becomes available for viewing, where you can analyze errors if they occur.

Check
The Check action checks the health of the service.
After selection, confirm the action by clicking Run.

In NiFi, Check checks the service availability on the port and the service status.
Expand
The Expand action expands the number of service instances in the established cluster. To expand the number of service instances, do the following:
-
Set options for installing new instances of the service.
-
Confirm your choice by clicking Next.
Configuration to run cluster extensionOptions for installing new service instancesOption Description Disable SELinux
Disable SELinux on added hosts. In order for this setting to take effect, after the Install operation is completed, you must restart the hosts manually
Disable Firewalld
Shutting down firewalld on hosts
Install OpenJDK
Installing java-1.8.0-openjdk package on hosts
Set vm.swappiness to 0
Disabling swapping on hosts
Configure /etc/hosts
Write added nodes to /etc/hosts on cluster hosts. It is recommended to disable this option if DNS is configured
-
Add the required number of hosts and place on it the components available for placement.
-
Confirm the action by clicking Run.
Installing service components for cluster expansion
Shrink
The Shrink action reduces the number of service instances in the installed cluster. To reduce the number of service instances, do the following:
-
Fill in List the DNames — a list of user and system IDs to remove from the NiFi Server/Registry. To enter each user, click on the + symbol and enter the username, for example
CN=nifi_node_hostname, OU=Arenadata, O=Arenadata, L=Moscow, ST=Moscow, C=RU
. -
Click Next.
List to remove from NiFi Server/Registry -
Select which components to remove from which host.
-
Confirm the action by clicking Run.

Restart
The Restart action stops and then starts the service.
After selection, confirm the action by clicking Run.

Start
The Start action starts the service.
After selection, confirm the action by clicking Run.

Stop
The Stop action stops the service.
After selection, confirm the action by clicking Run.

Manage Initial Admin
The Manage Initial Admin action is used when the NiFi Initial Admin parameter needs to be changed after configuring NiFi service authentication.
After selecting the action, enter the new user DN and password in the opened Run an action window and click Run.

Performing an action triggers:
-
Change the NiFi Initial Admin setting in the authorizers.xml config settings section of the NiFi service.
-
Change NiFi admin login details in NiFi Server UI and NiFi Registry UI.
Manage Ranger plugin
The Manage Ranger plugin action triggers the Ranger NiFi plugin activation to enable NiFi service authorization.
After selecting an action, in the opened window Run an action:
-
Check required state of parameter Desired plugin state — after selecting
enable
state, the default policy for Ranger NiFi plugin will be applied to Ranger. -
Specify Ranger Admin Identity — DN of the certificate that Ranger will use to communicate with NiFi.
-
Click Run.
Enable Ranger NiFi Plugin