Configure HDP Kafka and Kafka 3

This page describes how to configure Kafka and Kafka 3 in HDP clusters so Pulse can collect metrics, monitor topics, and track job activity.

Set JMX Port (Kafka 2.x)

In the Ambari UI:

  1. Add the following parameters at the end of the file.
  2. Add the following parameter at the end of the file to set the JMX port without any security.
Bash
Copy

Set JMX port (Kafka 3.x)

In the Ambari UI:

  1. Navigate to Kafka > Configs > Advanced kafka3-env > kafka3-env.
  2. Add the following parameter at the end of the file to set the JMX port without any security.

Kafka 3 with ZooKeeper

Bash
Copy

Kafka 3 with KRaft

Bash
Copy

Enable Basic Authentication (Optional)

In kafka-env template or kafka3-env, choose and add one of the following JMX configurations based on your security requirements.

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 on the JMX Remote port, add the following parameters:

Bash
Copy

Configure Kafka ACLs for HDFS User

Run the following commands as the Kafka user to grant All operations on all topics and groups:

Bash
Copy
Bash
Copy

Result

  • Kafka and Kafka 3 expose JMX metrics on the configured ports.
  • Optional authentication and TLS/SSL secure the connection.
  • ACLs ensure Pulse can read topic and consumer group metadata without manual intervention.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard