title: How do I initialize the whitelist for Apache-Zookeeper?
body: <p>I'm new to Apache Kafka.
  I've installed it into a Ubuntu Linux VM (18.04).</p>
  <p><strong>I've started up Zookeeper from the Kafka directory with the default configuration.</strong>
  <a href="https://i.stack.imgur.com/6ot2B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6ot2B.png" alt="Apache Kafka Startup" /></a></p>
  <p>The Zookeeper looks like it started successfully.
  From another Terminal window I am attempting to test.
  I'm connecting to it with Telnet and am attempting to send a &quot;stat&quot; command.</p>
  <p><strong>When I do so, I get the following error message:</strong>
  <a href="https://i.stack.imgur.com/MaCRL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MaCRL.png" alt="Zookeeper Error Message" /></a></p>
  <p>I'm a newbie to Apache/kafka and have limited linux experience.
  I googled around but it wasn't really clear to me how to update the whitelist.</p>
  <p>I found the following snippet from Zookeeper documentation:</p>
  <blockquote>
  <p>4lw.commands.whitelist (Java system property:
  zookeeper.4lw.commands.whitelist)</p>
  <p>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 &quot;wchp&quot; and &quot;wchc&quot;, if the
  property is not specified. If the property is specified, then only
  commands listed in the whitelist are enabled.</p>
  <p>Here's an example of the configuration that enables stat, ruok, conf,
  and isro command while disabling the rest of Four Letter Words
  command:
  4lw.commands.whitelist=stat, ruok, conf, isro
  Users can also use asterisk option so they don't have to include every command one by one in the list. As an example, this
  will enable all four letter word commands:
  4lw.commands.whitelist=*</p>
  </blockquote>
  <p>Can someone please explain the whitelist usage and how to correctly initialize it?</p>
  <p>Thanks, JohnB</p>