Menu

Zookeeper Administrator's Guide Enable four letter word commands in Zookeeper – enable 4lw commands

In Zookeeper, there are four letter word commands which will make your day.

New in 3.4.10: This property contains a list of comma separated Four Letter Words commands. It is introduced to provide fine grained control over the set of commands ZooKeeper can execute, so users can turn off certain commands if necessary. By default it contains all supported four letter word commands except “wchp” and “wchc”, if the property is not specified. If the property is specified, then only commands listed in the whitelist are enabled.

Here is how to enable them in the zookeeper server.

Just add the below into zookeeper.properties file

// Enable all 4lw commands
4lw.commands.whitelist=*

The following 4-letter-word commands are supported:

wchp
wchc
wchs
stat
srvr
srst
ruok
envi
dump
crst
cons
conf

** If you don’t want to enable all the commands, then, instead of *, use the particular commands with comma , in between each commands. Such as : 

4lw.commands.whitelist=stat, ruok, conf, isro

Loading

Categories:   Apache, Zookeeper

Comments