4lw (Apache ZooKeeper-specific)

Issue a ZooKeeper 4-letter-word command.

Use this command to access 4-letter-word commands, in a manner similar to issuing these commands via telnet.

By default 4-letter-word commands are disabled—you must enable them when configuring the ZooKeeper.

Example lines you can add to the zookeeper.properties file:

// Enable all 4lw commands
4lw.commands.whitelist=*
// Enable only ruok, stat, conf, isro 
4lw.commands.whitelist=stat, ruok, conf, isro 

Synopsis

4lw <command> [<host:port>]

Options

The following 4-letter-word commands are supported:

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

For information on available Apache ZooKeeper 4-letter-word commands, see zookeeper.apache.org/doc/r3.5.5/zookeeperAdmin.html#sc_4lw

Examples

>4lw conf localhost:2181
Cluster@sample> 4lw srvr