YARN CLI

This section includes the reference documentation for the YARN shell.

All YARN commands are invoked by the bin/yarn script. Running the bin/yarn script without arguments prints the description for all commands.

The script usage is as follows:

$ yarn [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [SUB_COMMAND] [COMMAND_OPTIONS]

YARN has an option parsing framework that employs parsing generic options as well as running classes.

YARN shell basic structure
Field Description

SHELL_OPTIONS

The common set of shell options

GENERIC_OPTIONS

The common set of options supported by multiple commands

COMMAND_OPTIONS

Various commands with their options are described in the following sections

User commands

Command Description

application

Used to print application reports, kill application, and manage long running application

applicationattempt

Prints applicationattempt reports

classpath

Prints the classpath needed to get the Hadoop JAR and the required libraries

container

Prints container(s) report

jar

Runs a JAR file. Users can bundle their YARN code in a JAR file and execute it using this command

logs

Dumps the container logs

node

Prints node report(s)

queue

Prints queue information

top

Displays YARN applications and the resources they consume

version

Prints the Hadoop version

envvars

Displays computed Hadoop environment variables

Administration commands

Command Description

daemonlog

Gets/sets the log level for a log identified by a qualified class name in the daemon dynamically

nodemanager

Starts the NodeManager

proxyserver

Starts the web proxy server

resourcemanager

Starts the ResourceManager

rmadmin

Runs ResourceManager admin client

schedulerconf

Updates scheduler configuration. Note, this feature is in alpha phase and is subject to change

scmadmin

Runs Shared Cache Manager admin client

sharedcachemanager

Starts the Shared Cache Manager

timelineserver

Starts the TimeLineServer

registrydns

Starts the RegistryDNS server

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