cluster queryservice setconfig
Enables or disables the OJAI Distributed Query Service. When enabling the service, you can specify the configuration of the service.
Permissions Required
Only the user that enabled the OJAI Distributed Query Service can run this command. If the
service was enabled during installation, the user mapr
must run the
command.
Syntax
- CLI
-
maprcli cluster queryservice setconfig [ -cluster < cluster-name > ] -enabled < true | false > -clusterid < cluster-id of MapR Drill cluster > -storageplugin < Name of MapR Drill Storage plug-in > -znode < Root Zookeeper node user by MapR Drill cluster >
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/queryservice/setconfig?<parameters>
Parameters
Parameter |
Description |
---|---|
|
(Optional) Name of the cluster that is using secondary indexes to query HPE Ezmeral Data Fabric Database JSON tables |
|
(Required) Whether the OJAI Distributed Query Service is enabled.
Values: true or false |
clusterid |
(Required) Cluster ID of your MapR Drill cluster. Refer to the value of
the cluster-id parameter in the drill-distrib.conf
file. You can find this file in the /opt/mapr/drill/drill-<version
number>/conf directory. |
storageplugin |
(Required) Name of the MapR Drill Storage plug-in instance used to run OJAI queries (usually dfs) |
znode |
(Required) Name of the root Zookeeper node used by the MapR Drill cluster (usually /drill) |
Examples
- CLI
-
maprcli cluster queryservice setconfig \ -enabled true \ -clusterid mycluster \ -storageplugin dfs \ -znode /drill
- REST
-
NOTE When 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/cluster/queryservice/setconfig?enabled=true&clusterid=mycluster&storageplugin=dfs&znode=/drill