[go: nahoru, domu]

Page MenuHomePhabricator

Enable blocked commands in Zookeeper management interface
Closed, ResolvedPublic

Description

Zookeeper has a simple management interface that we can use to check cluster health, list keys, etc. The management commands are collectively known as the Four-Letter Words.

Starting with version 3.4.10 , Zookeeper blocks these commands by default, responding with ${cmd} is not executed because it is not in the whitelist. We're running into this on Bookworm, which ships with 3.8.0-11.

As we need these commands to have visibility into the cluster, I'm creating this ticket to:

  • Enable these commands in zoo.cfg for newer versions of Zookeeper.
  • Verify operation.

Event Timeline

Change #1034162 had a related patch set uploaded (by Ryan Kemper; author: Ryan Kemper):

[operations/puppet@production] zookeeper: enable 4lw cmds in zk 3.4.10

https://gerrit.wikimedia.org/r/1034162

bking updated Other Assignee, added: bking.

Change #1034162 merged by Bking:

[operations/puppet@production] zookeeper: enable 4lw cmds in bookworm or later

https://gerrit.wikimedia.org/r/1034162

We merged this change yesterday and confirmed that we can now use the "Four Letter Word" commands. Closing...

Here's what it looked like before the puppet patch:

ryankemper@cumin2002:~$ sudo -E cookbook sre.zookeeper.roll-restart-zookeeper flink-codfw
===== NODE GROUP =====
(1) flink-zk2003.codfw.wmnet
----- OUTPUT of 'echo stats | nc -q 1 localhost 2181' -----
stat is not executed because it is not in the whitelist.