Managing the Hadoop-YARN services
The sbin
Hadoop-YARN bundle contains shell scripts to manage the YARN services. It is always easy to use scripts to start or stop the services. It reads the required Hadoop configuration files, such as yarn-site.xml
and slaves,
in the etc/hadoop/
directory. This section will cover the usage of different scripts used by YARN.
Similar to Hadoop-HDFS scripts, YARN uses four scripts, listed and described next:
start-yarn.sh
: Thestart-yarn
script is used to start all the YARN daemons—ResourceManager, NodeManager on all slaves and the proxy server with a single script. It should be executed on the ResourceManager node, that is, the master node. It reads the slaves file in the configuration folder to get a list of the slaves in the YARN cluster. It creates a secure shell connection to each of the slave nodes and executes a command to start the NodeManager daemon on that node. It does not require any arguments.stop-yarn.sh
: Thestop-yarn
script is similar to the...