NiFi actions
This article describes the main actions available for working with the service in ADCM.
To go to actions in the service, click the cluster name on the Clusters page, open the Services tab, click
in the line corresponding to
NiFi
service and choose the desired action.
When you select an action, ADCM displays a dialog box to confirm your selection. In this dialog box, you can select the Verbose check box to view additional information about the execution of the action on the Jobs page.
![Action confirmation](../../_images/cluster_management/service_actions_run.png)
To view the results of an action, go to Jobs and click 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.
![Action result](../../_images/cluster_management/nifi_actions/nifi_actions_04.png)
Check
The Check action checks the health of the service.
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 List the DNames
List of user and system IDs to add to NiFi Server/Registry. To enter each user, click the + 1 symbol and enter the user name, for example
CN=nifi_node_hostname, OU=Arenadata, O=Arenadata, L=Moscow, ST=Moscow, C=RU
Disable SELinux
Disable SELinux on added hosts. In order for this setting to take effect, after the 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
Set service checks
Enables service checking when starting an action
-
Add the required number of hosts for each available component.
-
Confirm the action by clicking Run.
NOTEWhen placing components on new hosts, it is necessary to place the System metrics Agent component of the Monitoring Clients service on the each new host.
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 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 hosts hosting components need to be removed.
-
Confirm the action by clicking Run.
![Removing service components to reduce the cluster](../../_images/cluster_management/nifi_actions/nifi_actions_09.png)
Restart
The Restart action stops and then starts the service. To restart the service:
![Configuration for restarting the service](../../_images/cluster_management/service_actions_02.png)
Start
The Start action starts the service. To start the service:
-
Select the required value for the Apply configs from ADCM option.
-
Confirm the action by clicking Run.
![Configuration for restarting the service](../../_images/cluster_management/service_actions_03.png)
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.
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.