我要评分
获取效率
正确性
完整性
易理解

Running and Verifying ZooKeeper

  1. Start ZooKeeper on agent1, agent2, and agent3.
    1
    2
    cd /usr/local/zookeeper/bin
    ./zkServer.sh start
    

    You can stop ZooKeeper on agent1, agent2, and agent3.

    1
    2
    cd /usr/local/zookeeper/bin
    ./zkServer.sh stop
    
  2. Check the ZooKeeper status.
    Run the ./zkServer.sh status command. If the first line in the following figure is displayed, the startup is successful.
    1
    ./zkServer.sh status