node cldbprimary
Returns the address of the primary CLDB node.
The node cldbprimary
API returns the server ID and hostname of the
node serving as the CLDB primary node.
Syntax
- CLI
-
maprcli node cldbprimary [ -cluster <cluster name> ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/node/cldbprimary[?<parameters>]
Parameters
Parameter |
Description |
---|---|
|
The name of the cluster for which to return the CLDB primary node information. |
Examples
Return the CLDB primary node information for the cluster my.cluster.com:
- CLI
-
maprcli node cldbprimary -cluster my.cluster.com
{ "timestamp":1622099062802, "timeofday":"2021-05-27 07:04:22.802 GMT+0000 AM", "status":"OK", "total":1, "data":[ { "cldbmprimary":"ServerID: 3523090783455785824 HostName: m2-mapreng-vmm167214.xxxx" } ] }
- REST
-
curl -k -X POST 'https://10.163.167.214:8443/rest/node/cldbprimary?cluster=my.cluster.com' --user mapr:mapr
{"timestamp":1622099484367,"timeofday":"2021-05-27 07:11:24.367 GMT+0000 AM","status":"OK","total":1,"data":[{"cldbprimary":"ServerID: 3523090783455785824 HostName: m2-mapreng-vmm167214.mip.xxx"}]}