Difference between revisions of "Linux zookeeper"
From John Freier
| Line 3: | Line 3: | ||
== Shell Commands == | == Shell Commands == | ||
The server works by using things called znodes, kind of like a file system / | The server works by using things called znodes, kind of like a file system / | ||
| + | |||
| + | This shell is very helpful for debugging issue and understand what Zoo Keeper does under the hood. | ||
| + | |||
| + | To Start the shell | ||
| + | ./zkCli.sh -server localhost:2181 | ||
ls - list out the directory | ls - list out the directory | ||
create /test - creates the znode test | create /test - creates the znode test | ||
get /test - gets the data for the znode | get /test - gets the data for the znode | ||
| + | |||
| + | |||
| + | == Spring Cloud ZooKeeper == | ||
Revision as of 11:15, 18 July 2017
ZooKeeper is a cluster operator.
Shell Commands
The server works by using things called znodes, kind of like a file system /
This shell is very helpful for debugging issue and understand what Zoo Keeper does under the hood.
To Start the shell
./zkCli.sh -server localhost:2181
ls - list out the directory create /test - creates the znode test get /test - gets the data for the znode