Configure HDP ZooKeeper

This page describes how to enable ZooKeeper JMX so that Pulse can collect metrics.

Configure JMX Environment Variables and Flags

In the Ambari UI:

  1. Navigate to Zookeeper > Configs > Advanced zookeeper-env > zookeeper-env template.
  2. Set the JMXDISABLE environment variable:
Bash
Copy
  1. In zookeeper-env template, choose and add one of the following JMX configurations based on your security requirements.

Enable JMX without Security on JMX Remote Port

To enable JMX port without any security, add the following parameters at the end of the file:

Bash
Copy

Enable Basic Authentication on JMX Remote Port (Optional)

To enable basic authentication on the JMX remote port, add the following parameters:

Bash
Copy

Enable TLS/SSL on JMX Remote Port (Optional)

To enable TLS/SSL authentication on the JMX remote port, add the following parameters:

Bash
Copy

Change the values of <> with appropriate values.

Result

  • ZooKeeper exposes JMX metrics on the configured port.
  • JMX can be secured with Basic Auth and/or TLS as required.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard