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 Data Fabric Drill cluster >
   -storageplugin < Name of Data Fabric Drill Storage plug-in >
   -znode < Root Zookeeper node user by Data Fabric Drill cluster >          
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/queryservice/setconfig?<parameters>

Parameters

Parameter

Description

cluster

(Optional) Name of the cluster that is using secondary indexes to query HPE Ezmeral Data Fabric Database JSON tables

enabled

(Required) Whether the OJAI Distributed Query Service is enabled. Values: true or false
clusterid (Required) Cluster ID of your Data Fabric 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 Data Fabric Drill Storage plug-in instance used to run OJAI queries (usually dfs)
znode (Required) Name of the root Zookeeper node used by the Data Fabric 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 to curl to avoid the certificate check.
curl -u <username> -X POST https://server.sj.us:8443/rest/cluster/queryservice/setconfig?enabled=true&clusterid=mycluster&storageplugin=dfs&znode=/drill