In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Why does ZooKeeper (1) use ZooKeeper: https://blog.csdn.net/qq_39468795/article/details/78394253
What is the use of zookeeper command line client and its function testing
First of all, under the bin directory of the zookeeper installation directory, / usr/local/apps/zookeeper-3.4.6/bin has a zkCli.sh command that is used for the client. / zkCli.sh-server hadoop-server-01 (boot 01 this machine) this indicates a successful link [zk: hadoop-server-01 (CONNECTED) 0]. We can use help to see the command zookeeper. Storage data is similar to the tree structure set path data [version] (specify the child node information under this path) such as: ls / (root node) create [- s] [- e] path data acl (create a node) such as: cerate / itcast 500000 get path [watch] (used to view the contents of the node) such as: get / Itcast (that is, look at the contents of the itcast node) set path data [version] (modify the contents of the node) for example, set / itcast 1000000 changes the previous 500000 to 1000000 heartbeat to feel that the other party still exists? Modify the data immediately get path [watch] for example: get / itcast watch (view the contents of itcast and create a listener) once the data is modified, the listener will be notified that the listener will also play a role. After you change the data once, the listener will not work. To re-create the listener (the listener registers once and wants to register again) We use the java program to implement the specific zookeeper function rmr / itcast (delete the itcast in the root directory)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.