node maintenance

Places a node into a maintenance mode for a specified duration.

IMPORTANT
To put any node other than a master node into maintenance, you can directly run the node maintenance command on the node.

The maintenance mode operation is disallowed on a master node with the CLDB service in the running state on the master node. Before you can put a master node into maintenance mode, you must stop the CLDB service. Run the following command to stop the CLDB service:

maprcli node services -name cldb -action stop -nodes mapr-<node>

For the duration of the maintenance mode, the cluster's CLDB does not consider the data of this node as lost and does not trigger a resync of the data on this node. See Administering Nodes for more information.

Syntax

CLI
/opt/mapr/bin/maprcli node maintenance
                     [ -cluster <cluster> ]
                     [ -serverids <serverids> ]
                     -nodes <node names>
                     -timeoutminutes <timeout in minutes> 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/node/maintenance?<parameters> 

Parameters

Parameter

Description

cluster

The cluster on which to run the command.

serverids

List of server IDs

nodes

List of nodes, space separated.

timeoutminutes

Duration of the maintenance mode in minutes

Examples

/opt/mapr/bin/maprcli node maintenance -nodes centos22.lab -timeoutminutes 20
curl -u mapr:mapr -X POST -k 'https://abc.sj.us:8443/rest/node/maintenance?nodes=centos22.lab&timeoutminutes=20'