4lw (Apache ZooKeeper-specific)

Issue a ZooKeeper 4-letter-word command.

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

By default 4-letter-word commands are disabled by ZooKeeper—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 ZooKeeper commands are supported by MSGMX.

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

For information on available Apache ZooKeeper 4-letter-word commands, see the ZooKeeper Administrator's Guide, The Four Letter Words

Examples

>4lw conf localhost:2181
/Instance/Cluster> 4lw srvr