Zookeeper under the shell operation

Source: Internet
Author: User
Tags zookeeper

Zookeeper under the shell operationEnter%zk_home%/binperform zkcli.sh [-server Ip:port] #如不指定, then connect the nativeCreate:create [-S] [-e] path data ACL #创建数据节点-----s indicates that the sequential node-e represents a temporary node, and two are persistent nodes--acl Specifies permission control and does not assign any permission controlExercise: Create/zk-book where data is 123Create/zk-book 123list:ls Path [watch] #列出所有数据节点Exercise: List all data nodes in the root directoryLS/Get:get path [watch]Exercise: List the data in/zk-bookGet/zk-bookUpdate:set path data [version]--data for the content to update version specifies which version of the data to update based onDelete:delete path [version]--path for the path to be deleted specify which version to delete based on--note that there must be no child nodes under the node to be removed to remove the success

Zookeeper under the shell operation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.