Use zkCli.sh to connect to ZooKeeper on your E-MapReduce (EMR) cluster and run data operations from the command line.
Prerequisites
Before you begin, ensure that you have:
An EMR cluster with ZooKeeper selected as an optional service during cluster creation. For more information, see Create a cluster.
SSH access to the cluster. For more information, see Log on to a cluster.
Connect to ZooKeeper
Log on to the cluster in SSH mode.
Run the following command to connect to ZooKeeper:
zkCli.sh -server master-1-1:2181After you connect to ZooKeeper, run
helpto display all commands supported by ZooKeeper.
Related resources
For more information about ZooKeeper, see the ZooKeeper Getting Started Guide.