Saves configuration information, specified as key/value pairs. Permissions required: fc or a.

See the Configuration Fields table.

Syntax

CLI

maprcli config save
    [ -cluster <cluster> ]
    -values <values>

REST

http[s]://<host>:<port>/rest/config/save?<parameters> 

Parameters



Parameter

Description

cluster

The cluster on which to run the command.

values

A JSON object containing configuration fields; see the Configuration Fields table.

Examples

Configure MapR SMTP settings:

CLI

maprcli config save -values '{"mapr.smtp.provider":"gmail","mapr.smtp.server":"smtp.gmail.com","mapr.smtp.sslrequired":"true","mapr.smtp.port":"465","mapr.smtp.sender.fullname":"Ab  Cd","mapr.smtp.sender.email":"xxx@gmail.com","mapr.smtp.sender.username":"xxx@gmail.com","mapr.smtp.sender.password":"abc"}'

REST

https://r1n1.sj.us:8443/rest/config/save?values={"mapr.smtp.provider":"gmail","mapr.smtp.server":"smtp.gmail.com","mapr.smtp.sslrequired":"true","mapr.smtp.port":"465","mapr.smtp.sender.fullname":"Ab  Cd","mapr.smtp.sender.email":"xxx@gmail.com","mapr.smtp.sender.username":"xxx@gmail.com","mapr.smtp.sender.password":"abc"}