dump cldbnodes

Lists the nodes that contain container location database (CLDB) data.

The CLDB is a service running on one or more Data Fabric nodes that maintains the location of cluster containers, services, and other information. The CLDB automatically replicates its data to other nodes in the cluster, preserving at least two (and generally three) copies of the CLDB data. If the CLDB process dies, it is automatically restarted on the node.

Syntax

CLI
maprcli dump cldbnodes
    [-cluster <cluster name>]
    -zkconnect <ZooKeeper Connect String>
    -json | -long
NOTE
Use the -json option from the command line for best results.
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/dump/cldbnodes?<parameters> 

Parameters

Parameter

Description

cluster

(Optional) The cluster on which to run the command. If you omit this parameter, the command uses the cluster on which it runs. In multi-cluster contexts, you can use this parameter to specify a different cluster to run the command.

zkconnect (Required) A ZooKeeper connect string, which specifies a list of the hosts running ZooKeeper, and the port to use on each, in the format: '<host>[:<port>][,<host>[:<port>]...]'. To obtain ZooKeeper connection strings, use the maprcli node listzookeepers command.
json | long (Required) This command returns multiple levels of data. You need to specify either JSON format or "long" format to see the full output.

Output

The maprcli dump cldbnodes command returns the IP address and port number of the CLDB nodes on the cluster.

$ maprcli dump cldbnodes -zkconnect centos23.lab:5181 -json
{
    "timestamp":1433270634424,
    "timeofday":"2015-06-02 06:43:54.424 GMT+0000",
    "status":"OK",
    "total":1,
    "data":[
        {
            "valid":[
                "10.10.82.23:5660-",
                "10.10.82.28:5660-",
                "10.10.82.29:5660-",
                "10.10.82.22:5660-"
            ]
        }
    ]
}

Example

CLI
maprcli dump cldbnodes -zkconnect centos23.lab:5181 -json
REST
NOTE
When using a self-signed certificate, pass the -k option to curl to avoid the certificate check.
curl -k -u <username> -X GET https://abc.sj.us:8443/rest/dump/cldbnodes?zkconnect=centos23.lab:5181"