config save

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

See the Configuration Fields table.

Warning: Changing cluster configuration may have an impact on the way the cluster functions. Make sure you understand the change well or else make the change under the guidance of data-fabric support.

Syntax

CLI
maprcli config save
         [ -cluster cluster name ]
         -test test only. default: 0
         -values JSON Object to comprise all config properties to save
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 data-fabric 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"}

Define maximum number of configured security policies:

CLI
/opt/mapr/bin/maprcli config save -values '{"cldb.max.security.policies":"2048"}'
REST
https://abc.sj.us:8443/rest/config/save?values={"cldb.max.security.policies":"2048"}

Set the master security policy cluster:

CLI
/opt/mapr/bin/maprcli config save -values '{"cldb.pbs.global.master":"1"}'
REST
https://abc.sj.us:8443/rest/config/save?values={"cldb.pbs.global.master":"1"}

Set the number of volumes to balance at a time:

CLI
maprcli config save -values '{"cldb.tier.gw.balance.num.vols.per.batch":"500"}'
REST
https://abc.sj.us:8443/rest/config/save?values={"cldb.tier.gw.balance.num.vols.per.batch":"500"}
Note: The maximunm number of volumes that can be balanced at a time is 1000.