Using the Hadoop-YARN commands
YARN commands are invoked using the bin/yarn
script in the Hadoop bundle. The basic syntax for the yarn
command is:
yarn [--config confdir] COMMAND COMMAND_OPTIONS
Running the YARN script without any arguments, prints the description for all the commands. The config
option is optional and its default value is $HADOOP_PREFIX/etc/hadoop
.
YARN commands are classified as user and administration commands, as shown in the following figure:
The user commands
Hadoop-YARN clients execute the user commands. These clients connect to the YARN services using the configuration settings specified in the yarn-site.xml
file. As specified in the previous chapter, the yarn-site.xml
file and the other configuration files are all placed in the Hadoop configuration folder (/home/hduser/hadoop-2.5.1/etc/conf/
). There are mainly six user commands in the Hadoop-YARN framework.
Jar
The jar
command is used to run a jar
file with the YARN code, that is, to submit a YARN application to the...