config save

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

See the Configuration Fields table.

WARNING
Changing the cluster configuration may impact 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 (Optional) The cluster on which to run the command.
values (Required) A JSON object containing configuration fields; see the Configuration Fields table.
test (Optional) Set this to 1 to test the 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. The default value is 0.

Examples

Configure data-fabric 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
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X POST 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 the maximum number of configured security policies:

CLI
maprcli config save -values '{"cldb.max.security.policies":"2048"}'
REST
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.max.security.policies":"2048"}

Set the master security policy cluster:

CLI
maprcli config save -values '{"cldb.pbs.global.master":"1"}'
REST
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X POST 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
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.tier.gw.balance.num.vols.per.batch":"500"}
NOTE
The maximum number of volumes that can be balanced at a time is 1000.

Allocate CLDB memory for mirroring:

CLI
maprcli config save -values '{"cldb.mirror.memory.factor":"60"}'
REST
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.mirror.memory.factor":"60"}