Starting, Stopping, and Restarting NiFi Services

This topic describes how to start, stop, and restart NiFi services on HPE Ezmeral Data Fabric.

About this task

The Warden daemon starts the NiFi server automatically at installation time.

You can start and stop NiFi from the command line or from the Control System. You can use the maprcli node services command to start NiFi on multiple nodes at one time.

Starting, Stopping, and Restarting NiFi Services Using Command Line

About this task

Perform the following steps to start or stop or restart NiFi from the command line:

Procedure

  1. Make a list of nodes on which NiFi is configured.
  2. Run the maprcli node services command with either start, restart, or stop, and specify the nodes on which NiFi is configured, separated by spaces.
    maprcli node services -name nifi  -action start|stop|restart -nodes <nodes list> 

Starting, Stopping, and Restarting NiFi Services Using Scripts

About this task

You can manually start or stop or restart or check the status by using the script located at opt/mapr/nifi/nifi-<version>/bin/nifi.sh.

For example:
/opt/mapr/nifi/nifi-1.16.3/bin/nifi.sh start|stop|restart|status