YARN commands

Like Hadoop, YARN has a script that provides commands to manage YARN. The commands are of the following two kinds:

  • User commands: These are commands for the cluster user
  • Administration commands: These are commands for the cluster administrator

In Hadoop deployment, the YARN script is found in the same directory as the Hadoop scripts. The general syntax of the YARN script is as follows:

yarn [--config <config directory>] command [options]

The –config option can be used to override the default configuration. The default configuration directory is picked up from the environment variable $HADOOP_PREFIX/conf.

User commands

The following are the important user commands in YARN:

  • The jar command is used to run a custom, user-built JAR file. In ...

Get Mastering Hadoop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.