node maintenance

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

IMPORTANT
Stop CLDB if it is running on the node, before putting that node in maintenance mode. Else, the maintenance mode operation is not permitted. Run: maprcli node services -name cldb -action stop -nodes mapr-<node>
NOTE
You cannot put a master CLDB node in Maintenance mode.

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'