config save

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

See the Configuration Fields table.

Syntax

CLI
maprcli config save
         -values JSON Object to comprise all config properties to save
         -test test only. default: 0
        [ -cluster cluster name ]
REST
Request Type POST
Request URL
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.
test Set this to 1 to test SMTP configuration without actually saving the values. The system sends a test email to check if the configuration is correct. This parameter is applicable only for SMTP configuration.

Examples

Configure MapR SMTP settings:

CLI
/opt/mapr/bin/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://abc.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"}