You can visit this page for the list of the four letter words commands
https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_zkCommands
To be able to execute the four letter words commands of ZooKeeper,
you need to add the following property to "
zoo.cfg
" file:
You can also set Java system property:
zookeeper.4lw.commands.whitelist
You can run one of four letter words commands of ZooKeeper using
nc
command:
You can also use
telnet
command to connect to the client port and execute the command
srvr
: