Starting, Stopping, and Restarting Services
You can start, stop, or restart services from the command line or from the MapR Control System (MCS).
In some cases, MapR automatically restarts the main services that manage the platform.
From the Command Line
- To start, stop, or restart services from the command line, use the
node services
command. The syntax for thenode services
command is:maprcli node services <-service_name> start|stop|restart -nodes <node1> <node2> ...
- Examples:
-
To restart the TaskTracker service on three nodes with hostnames:
node1
,node2
, andnode3
, enter:maprcli node services -tasktracker restart -nodes node1 node2 node3
To start the CLDB service on a node whose hostname is
nodeC
, enter:maprcli node services -cldb start -nodes nodeC
-
From the MCS
To start, stop, or restart a service through Manage Services,
complete the following steps:
- In the Navigation pane, expand the Cluster group and click the Nodes view.
- Select the checkbox next to the node or nodes whose services you want to start, stop, or restart.
- Click the Manage Services button to display the Manage Services dialog.
- For each service, select the appropriate option from the corresponding drop-down menu.
- Click OK to start, stop, and restart the services according to your selections.
To start, stop, or restart a service through Nodes and Properties, complete the following steps:
- From the Nodes view, select the checkbox beside the node whose services you want to display.
- Click the Properties button to display all the properties for the node.
- Scroll down to the Manage Node Services section to see the status of each service.
- Click on the Stop/Start or Restart icons as necessary.
Automatic Restarts
- When a MapR system is rebooted, the following services are automatically
restarted:
mapr-warden
mapr-zookeeper
mapr-loopbacknfs
mapr-posix-client-*
- These services are also automatically restarted if they are shut down
externally (as opposed to being shut down explicitly via
service
orsysctl
commands).
NOTE: This feature is implemented with
systemd
and is only supported on
the following operating systems: - RHEL 7.0, 7.1
- CentOS 7.0, 7.1
- SuSe 12