maprcli dump zkinfo command enables you to view a snapshot of the data stored in Zookeeper as a result of cluster operations. For best results, use the
-json option when running
dump zkinfo from the command line.
ZooKeeper prevents service coordination conflicts by enforcing a rigid set of rules and conditions, provides cluster-wide information about running services and their configuration, and provides a mechanism for almost instantaneous service failover. Warden will not start any services unless ZooKeeper is reachable and more than half of the configured ZooKeeper nodes are live.
mapr-support-collect.sh script calls the
maprcli dump supportdump command to gather cluster diagnostics for troubleshooting. For more information, see mapr-support-collect.sh.
maprcli dump zkinfo [-cluster <cluster name>] [-zkconnect <connect string>]
The cluster on which to run the command. If this parameter is omitted, the command is run on the same cluster where it is issued. In multi-cluster contexts, you can use this parameter to specify a different cluster on which to run the command.
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 dump zkinfo command is run as part of support dump tools to view the current state of the Zookeeper service. The command should always be run using the
-json option, since output in the default tabular format is not useful. Command output displays the data stored in the ZooKeeper hierarchical tree of znodes.
You can use the
maprcli dump zkinfo command as you would use a database snapshot. The
/*_locks znodes are used by Warden to store and exchange information.
Moving CLDB Data
In a Community Edition-licensed cluster, CLDB data must be recovered from a failed CLDB node and installed on another node. The cluster can continue normally as soon as the CLDB is started on another node. For more information, see Recovering from a Failed CLDB Node on a Community Edition Cluster.
maprcli dump zkinfo command to identify the latest epoch of the CLDB, identify the nodes where replicates of the CLDB are stored, and select one of those nodes to serve the new CLDB node. Perform the following steps on any cluster node:
- Log in as
sudofor the following commands.
maprcli dump zkinfocommand using the
The output displays the ZooKeeper znodes.
/datacenter/controlnodes/cldb/epoch/1directory, locate the CLDB with the latest epoch.
The Latest Epoch field identifies the current epoch of the CLDB data. In this example, the latest epoch is 13.
- Select a CLDB from among the copies at the latest epoch. For example,
10.250.2.41:5660--13-VALIDindicates that the node has a copy at epoch 13 (the latest epoch).