Configure ODP Trino

This page helps you enable Trino JMX and configure the Pulse event listener so Pulse can collect metrics and display Trino query statistics.

  • Pulse hook JARs are included in the installation package.
  • To enable query statistics in Pulse, configure the Trino event listener.
  • Trino’s event listener framework allows custom plugins to respond to query lifecycle events for advanced logging, debugging, and performance monitoring.
  • The supported events are query creation and query completion.
  • Each event provides session details, execution metrics, resource usage, and timelines.

Trino versions 472 and 435 support the hook jar.

Enable Trino JMX

In the Ambari UI:

  1. Navigate to Trino > Configs > Advanced config-properties.
  2. In Coordinator Node Config and Worker Node Config, add the following parameters at the end of the file:
Bash
Copy

Place Trino Hook JAR

  1. In the Trino node, navigate to the Trino plugin folder.

In the folder:

Bash
Copy
  1. Create the event listener directory.

Create the following directory:

Bash
Copy
  1. Place the Trino Hook JAR in the directory.

Hook JAR:

Bash
Copy

In the directory:

Bash
Copy
  1. Create the event-listener.properties file.

If not already present, create the file in the directory:

Bash
Copy
  1. Add the following properties.

In the event-listener.properties file, add the properties:

Bash
Copy

Replace <your-cluster-name> and <Pulse-IP> with actual values from your environment.

  1. Configure the plugin directory path.

If not already set, add the following line:

Bash
Copy

To the node.properties file:

Bash
Copy
  1. Restart the Trino coordinator server.

All configurations must be applied to the Trino coordinator server.

Result

  • Trino exposes JMX metrics on the configured port.
  • Trino hook emits execution events to Pulse.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard