YARN useful commands

Overview

The following sections contain examples of a few typical commands one might perform while working with an ADH cluster.

The tasks are:

  • Checking the cluster load.

  • Checking the running applications.

  • Termination of a frozen application.

Checking the cluster load

To check the load of applications at the host, enter the following command in the host terminal:

$ yarn top

This command displays the running applications and the resources they consume.

Checking the running applications

To list the applications running at the host, enter the following command in the host terminal:

$ yarn application -list

This command prints out a list of applications. The command supports optional use of the following attributes:

  • -appTypes to filter applications by application types;

  • -appStates to filter applications based on application state;

  • -appTags to filter applications based on application tag.

Termination of a frozen application

To terminate an application that stopped responding, enter the following command in the host terminal:

$ yarn application -kill <Application ID>

This command kills the application. You can provide a list of space-separated applications.

For more detailed information on the above commands, see YARN CLI.

Found a mistake? Seleсt text and press Ctrl+Enter to report it