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 [ -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
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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"}
Allocate CLDB memory for mirroring:
- CLI
-
maprcli config save -values '{"cldb.mirror.memory.factor":"60"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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"}
Allocate CLDB memory for mirroring:
- CLI
-
maprcli config save -values '{"cldb.mirror.memory.factor":"60"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
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"}
Set the buffer size for the insight service to 2048 records:
- CLI
-
maprcli config save -values '{"cldb.insight.buffer.size":"2048"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.buffer.size":"2048"}
Set the time interval for committing insight data to 2 minutes:
- CLI
-
maprcli config save -values '{"cldb.insight.commit.interval.mins":"2"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.commit.interval.mins":"2"}
Enable debugging for insights:
- CLI
-
maprcli config save -values '{"cldb.insight.debug.enabled":"true"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.debug.enabled":"true"}
Set the heartbeat for insight service to 10 seconds:
- CLI
-
maprcli config save -values '{"cldb.insight.heartbeat.seconds":"10"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.heatbeat.seconds":"10"}
Set secure communication with the Hive Metastore for the insight service:
- CLI
-
maprcli config save -values '{"cldb.insight.hivemetastore.sasl.enabled":"true"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.hivemetastore.sasl.enabled":"true"}
Set SSL communication with the Hive Metastore for the insight service:
- CLI
-
maprcli config save -values '{"cldb.insight.hivemetastore.ssl.enabled":"true"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.hivemetastore.ssl.enabled":"true"}
Set the insight summarization interval to 1 minute:
- CLI
-
maprcli config save -values '{"cldb.insight.summarization.minutes":"1"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.summarization.minutes":"1"}
Set the purge frequency of the insight records to 5 hours:
- CLI
-
maprcli config save -values '{"cldb.insight.purge.frequency.hours":"5"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.purge.frequency.hours":"5"}
Set the summary table purge frequency to 5 hours:
- CLI
-
maprcli config save -values '{"cldb.insight.summarytable.purge.hours":"5"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.summarytable.purge.frequency":"5"}
Set the Zeppelin port for the insight service to 8000:
- CLI
-
maprcli config save -values '{"cldb.insight.zeppelin.port":"8000"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"cldb.insight.zeppelin.port":"8000"}
Enable the insight service on the Data Fabric UI
- CLI
-
maprcli config save -values '{"dfui.insight.enable":"true"}'
- REST
-
NOTEWhen using a self-signed certificate, pass the
-k
option tocurl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/config/save?values={"dfui.insight.enable":"true"}