Configure the Java Options for Services Using JMX Agent in Ambari

You can update the Java options for the services through the Ambari UI.

Below are detailed, service-wise details for all services supported by the JMX agent.

Prerequistes

Ensure to update the ODP Services with JMX settings before proceeding. For details, see Configure ODP Cluster Services for Pulse.

Configuration

Cruise Control

  1. In the Ambari UI, go to Kafka → Advanced → cruise-control-env template.
  2. Add the following line at the end of the template:
Bash
Copy

Cruise Control 3

  1. In the Ambari UI, go to Kafka3 → Advanced → cruise-control3-env template.
  2. Add the following line at the end of the template:
Bash
Copy

Hive Metastore

  1. In the Ambari UI, go to Hive → Advanced → hive-env template
  2. Add the following line inside the section: if [ "$SERVICE" = "metastore" ].
Bash
Copy

Hive Server

  1. In the Ambari UI, go to Hive → Advanced → hive-env template.
  2. Add the following line inside the section: if [ "$SERVICE" = "hiveserver2" ].
Bash
Copy

Kafka

If Kafka Connect is NOT enabled:

  1. Go to Kafka → Advanced → kafka-env template
  2. Add the following line at the end:
Bash
Copy

If Kafka Connect is enabled:

Add the following snippet at the end of the kafka-env template:

Bash
Copy

Kafka 3

If Kafka Connect is NOT enabled:

  1. Go to Kafka3 → Advanced → kafka-env template
  2. Add the following line at the end:
Bash
Copy

If Kafka Connect is enabled:

Add the following snippet:

Bash
Copy

Kafka Connect

  1. Go to Kafka → Advanced → kafka-env template
  2. Add the following snippet at the end:
Bash
Copy

Kafka3 Connect

  1. Go to Kafka3 → Advanced → kafka3-env template.
  2. Add the following snippet at the end:
Bash
Copy

Kafka MirrorMaker2

  1. Go to Kafka → Advanced → kafka-mirrormaker2-env
  2. Add the following line at the end:
Bash
Copy

Kafka3 MirrorMaker2

  1. Go to Kafka3 → Advanced → kafka-mirrormaker2-env
  2. Add the following line at the end:
Bash
Copy

Pinot Broker

  1. Go to Pinot Broker → Java Virtual Machine (JVM) Options
  2. Add the following line at the end:
Bash
Copy

Pinot Controller

  1. Go to Pinot Controller → Java Virtual Machine (JVM) Options
  2. Add the following line at the end:
Bash
Copy

Pinot Server

  1. Go to Pinot Server → Java Virtual Machine (JVM) Options
  2. Add the following line at the end:
Bash
Copy

Ranger (Admin, Tagsync, Usersync)

  1. Go to Ranger → Advanced → ranger-env template

Ranger Admin

Add the line below in the {% if is_ranger_admin_host %} section:

Bash
Copy

Ranger Tagsync

For Tagsync, add the below line in the {% if is_ranger_tagsync_host %} section:

Bash
Copy

Ranger Usersync

For Usersync, add the line below in the {% if is_ranger_usersync_host %} section:

Bash
Copy

Schema Registry

  1. Go to Schema Registry → registry-env template
  2. Add the following line at the end:
Bash
Copy

Trino (Coordinator and Worker)

  1. Go to Trino → JVM Config file
  2. Add the following snippet at the end:
Bash
Copy

Zookeeper

  1. Go to Zookeeper → Advanced → zookeeper-env template
  2. Add the following line at the end:
Bash
Copy

Zeppelin Master

  1. Go to Zeppelin → zeppelin_env_content
  2. Add the following line at the end:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard