All Products
Search
Document Center

E-MapReduce:Use ZooKeeper

Last Updated:Mar 26, 2026

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

  1. Log on to the cluster in SSH mode.

  2. Run the following command to connect to ZooKeeper:

    zkCli.sh -server master-1-1:2181
  3. After you connect to ZooKeeper, run help to display all commands supported by ZooKeeper.

Related resources

For more information about ZooKeeper, see the ZooKeeper Getting Started Guide.